fn send_reset<T,U>(&mut self, initial: bool, mut buf: T) -> Result<(usize, ConnectionState), OssuaryError>
    where T: std::ops::DerefMut<Target = U>,
          U: std::io::Write {
        // Tell remote host to reset
        let pkt: ResetPacket = Default::default();
        let w = write_packet(self, buf.deref_mut(), struct_as_slice(&pkt),
                             PacketType::Reset)?;
        self.local_msg_id = 0;
        let state = match initial {
            true => ConnectionState::ResetWait,
            false => self.initial_state(),
        };
        Ok((w, state))
    }
/// Ready to send a reset packet
Ready to send a reset packet
Ready to send a reset packet
fn send_reset<T,U>(&mut self, initial: bool, mut buf: T) -> Result<(usize, ConnectionState), OssuaryError>
    where T: std::ops::DerefMut<Target = U>,
          U: std::io::Write {
        // Tell remote host to reset
        let pkt: ResetPacket = Default::default();
        let w = write_packet(self, buf.deref_mut(), struct_as_slice(&pkt),
                             PacketType::Reset)?;
        self.local_msg_id = 0;
        let state = match initial {
            true => ConnectionState::ResetWait,
            false => self.initial_state(),
        };
        Ok((w, state))
    }
fn send_reset < T , U > ( & mut self , initial : bool , mut buf : T ) -> Result < ( usize , ConnectionState ) , OssuaryError > where T : std :: ops :: DerefMut < Target = U > , U : std :: io :: Write { // Tell remote host to reset let pkt : ResetPacket = Default :: default ( ) ; let w = write_packet ( self , buf . deref_mut ( ) , struct_as_slice ( & pkt ) , PacketType :: Reset ) ? ; self . local_msg_id = 0 ; let state = match initial { true => ConnectionState :: ResetWait , false => self . initial_state ( ) , } ; Ok ( ( w , state ) ) }
Ready to send a reset packet
Ready to send a reset packet
&mut self
initial
bool
buf
T
&mut self
initial
bool
buf
T