pub enum ExtMessage {
Handshake(Bytes),
Metadata(MetadataMessage),
}Expand description
Parsed extension messages.
Variants§
Handshake(Bytes)
Extension handshake (ext_id=0).
Metadata(MetadataMessage)
ut_metadata message (BEP 9).
Trait Implementations§
Source§impl Clone for ExtMessage
impl Clone for ExtMessage
Source§fn clone(&self) -> ExtMessage
fn clone(&self) -> ExtMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtMessage
impl Debug for ExtMessage
Source§impl PartialEq for ExtMessage
impl PartialEq for ExtMessage
Source§fn eq(&self, other: &ExtMessage) -> bool
fn eq(&self, other: &ExtMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExtMessage
impl StructuralPartialEq for ExtMessage
Auto Trait Implementations§
impl !Freeze for ExtMessage
impl RefUnwindSafe for ExtMessage
impl Send for ExtMessage
impl Sync for ExtMessage
impl Unpin for ExtMessage
impl UnsafeUnpin for ExtMessage
impl UnwindSafe for ExtMessage
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