pub fn encode(&self) -> Vec<u8> {
        // `expect` should be fine here as there should be no reason why a serialization into a
        // `Vec` would fail unless we have a bug somewhere.
        serde_bencode::to_bytes(self).expect("failed to serialize message")
    }
/// Encode the message into bencode.
Encode the message into bencode.
Encode the message into bencode .
pub fn encode(&self) -> Vec<u8> {
        // `expect` should be fine here as there should be no reason why a serialization into a
        // `Vec` would fail unless we have a bug somewhere.
        serde_bencode::to_bytes(self).expect("failed to serialize message")
    }
pub fn encode ( & self ) -> Vec < u8 > { // `expect` should be fine here as there should be no reason why a serialization into a // `Vec` would fail unless we have a bug somewhere. serde_bencode :: to_bytes ( self ) . expect ( " " ) }
Encode the message into bencode.
Encode the message into bencode .
&self
&self