fn check_next_segment_status(
        &mut self,
        tuple: ConnectionTuple,
        status: NextSegmentStatus,
    ) -> bool {
        if let Some((_, timeout_tuple)) = self.next_timeout {
            if tuple == timeout_tuple {
                self.find_next_timeout();
            }
        }
        match status {
            NextSegmentStatus::Available => {
                self.active_connections.insert(tuple);
                return true;
            }
            NextSegmentStatus::Timeout(value) => self.check_timeout(value, tuple),
            NextSegmentStatus::Nothing => (),
        };

        false
    }
// Returns true if the endpoint has been added to the set of active connections (it may have
// been there already).
Returns true if the endpoint has been added to the set of active connections (it may have
been there already).
Returns true if the endpoint has been added to the set of active connections ( it may have been there already ) .
fn check_next_segment_status(
        &mut self,
        tuple: ConnectionTuple,
        status: NextSegmentStatus,
    ) -> bool {
        if let Some((_, timeout_tuple)) = self.next_timeout {
            if tuple == timeout_tuple {
                self.find_next_timeout();
            }
        }
        match status {
            NextSegmentStatus::Available => {
                self.active_connections.insert(tuple);
                return true;
            }
            NextSegmentStatus::Timeout(value) => self.check_timeout(value, tuple),
            NextSegmentStatus::Nothing => (),
        };
        false
    }
fn check_next_segment_status ( & mut self , tuple : ConnectionTuple , status : NextSegmentStatus , ) -> bool { if let Some ( ( _ , timeout_tuple ) ) = self . next_timeout { if tuple == timeout_tuple { self . find_next_timeout ( ) ; } } match status { NextSegmentStatus :: Available => { self . active_connections . insert ( tuple ) ; return true ; } NextSegmentStatus :: Timeout ( value ) => self . check_timeout ( value , tuple ) , NextSegmentStatus :: Nothing => ( ) , } ; false }
Returns true if the endpoint has been added to the set of active connections (it may have
been there already).
Returns true if the endpoint has been added to the set of active connections ( it may have been there already ) .
&mut self
tuple
ConnectionTuple
status
NextSegmentStatus
&mut self
tuple
ConnectionTuple
status
NextSegmentStatus