pub enum MetadataMessageType {
Request = 0,
Data = 1,
Reject = 2,
}Expand description
ut_metadata message types (BEP 9).
Variants§
Request = 0
Request a metadata piece from the peer.
Data = 1
Metadata piece payload.
Reject = 2
Peer does not have the requested metadata piece.
Trait Implementations§
Source§impl Clone for MetadataMessageType
impl Clone for MetadataMessageType
Source§fn clone(&self) -> MetadataMessageType
fn clone(&self) -> MetadataMessageType
Returns a duplicate of the value. Read more
1.0.0 · 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 MetadataMessageType
impl Debug for MetadataMessageType
Source§impl PartialEq for MetadataMessageType
impl PartialEq for MetadataMessageType
impl Copy for MetadataMessageType
impl Eq for MetadataMessageType
impl StructuralPartialEq for MetadataMessageType
Auto Trait Implementations§
impl Freeze for MetadataMessageType
impl RefUnwindSafe for MetadataMessageType
impl Send for MetadataMessageType
impl Sync for MetadataMessageType
impl Unpin for MetadataMessageType
impl UnsafeUnpin for MetadataMessageType
impl UnwindSafe for MetadataMessageType
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