pub enum HandshakeMessage {
Initiator(usize, Vec<u8>),
Responder(usize, Vec<u8>),
// some variants omitted
}
Expand description
Handshake messages.
Variants§
Trait Implementations§
Source§impl Debug for HandshakeMessage
impl Debug for HandshakeMessage
Source§impl Decodable for HandshakeMessage
impl Decodable for HandshakeMessage
Source§impl Default for HandshakeMessage
impl Default for HandshakeMessage
Source§fn default() -> HandshakeMessage
fn default() -> HandshakeMessage
Returns the “default value” for a type. Read more
Source§impl Encodable for HandshakeMessage
impl Encodable for HandshakeMessage
Source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Encode self into the binary writer.
Source§impl From<&HandshakeMessage> for u8
impl From<&HandshakeMessage> for u8
Source§fn from(value: &HandshakeMessage) -> Self
fn from(value: &HandshakeMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HandshakeMessage
impl RefUnwindSafe for HandshakeMessage
impl Send for HandshakeMessage
impl Sync for HandshakeMessage
impl Unpin for HandshakeMessage
impl UnwindSafe for HandshakeMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more