pub fn take(&mut self) -> Result<(u16, zx::Duration), OutOfSequencesError> {
        let seq_num = self.next_seq;
        let (next_seq, overflow) = self.next_seq.overflowing_add(1);
        self.next_seq = next_seq;
        if overflow {
            return Err(OutOfSequencesError);
        }
        let offset_from_start_time = fasync::Time::now().into_zx() - self.start_time;
        Ok((seq_num, offset_from_start_time))
    }
/// Take a sequence number and time offset for use in an ICMP echo request.
Take a sequence number and time offset for use in an ICMP echo request.
Take a sequence number and time offset for use in an ICMP echo request .
pub fn take(&mut self) -> Result<(u16, zx::Duration), OutOfSequencesError> {
        let seq_num = self.next_seq;
        let (next_seq, overflow) = self.next_seq.overflowing_add(1);
        self.next_seq = next_seq;
        if overflow {
            return Err(OutOfSequencesError);
        }
        let offset_from_start_time = fasync::Time::now().into_zx() - self.start_time;
        Ok((seq_num, offset_from_start_time))
    }
pub fn take ( & mut self ) -> Result < ( u16 , zx :: Duration ) , OutOfSequencesError > { let seq_num = self . next_seq ; let ( next_seq , overflow ) = self . next_seq . overflowing_add ( 1 ) ; self . next_seq = next_seq ; if overflow { return Err ( OutOfSequencesError ) ; } let offset_from_start_time = fasync :: Time :: now ( ) . into_zx ( ) - self . start_time ; Ok ( ( seq_num , offset_from_start_time ) ) }
Take a sequence number and time offset for use in an ICMP echo request.
Take a sequence number and time offset for use in an ICMP echo request .
&mut self
&mut self