pub struct UtMetadataRejectMessage { /* private fields */ }Expand description
Message for rejecting a request for metadata from a peer.
Implementations§
Source§impl UtMetadataRejectMessage
impl UtMetadataRejectMessage
pub fn new(piece: i64) -> UtMetadataRejectMessage
pub fn with_bytes(piece: i64, bytes: Bytes) -> UtMetadataRejectMessage
pub fn write_bytes<W>(&self, writer: W) -> Result<()>where
W: Write,
pub fn message_size(&self) -> usize
pub fn piece(&self) -> i64
Trait Implementations§
Source§impl Clone for UtMetadataRejectMessage
impl Clone for UtMetadataRejectMessage
Source§fn clone(&self) -> UtMetadataRejectMessage
fn clone(&self) -> UtMetadataRejectMessage
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 UtMetadataRejectMessage
impl Debug for UtMetadataRejectMessage
Source§impl Hash for UtMetadataRejectMessage
impl Hash for UtMetadataRejectMessage
Source§impl PartialEq for UtMetadataRejectMessage
impl PartialEq for UtMetadataRejectMessage
impl Copy for UtMetadataRejectMessage
impl Eq for UtMetadataRejectMessage
impl StructuralPartialEq for UtMetadataRejectMessage
Auto Trait Implementations§
impl Freeze for UtMetadataRejectMessage
impl RefUnwindSafe for UtMetadataRejectMessage
impl Send for UtMetadataRejectMessage
impl Sync for UtMetadataRejectMessage
impl Unpin for UtMetadataRejectMessage
impl UnwindSafe for UtMetadataRejectMessage
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