pub struct IncompleteRelayMsgInfo { /* private fields */ }Expand description
Information about a relay message for which we don’t yet have the complete body.
Implementations§
source§impl IncompleteRelayMsgInfo
impl IncompleteRelayMsgInfo
sourcepub fn total_msg_len(&self) -> usize
pub fn total_msg_len(&self) -> usize
Returns the total size of the complete message body.
sourcepub fn num_bytes_present(&self) -> usize
pub fn num_bytes_present(&self) -> usize
Returns the number of bytes of the message body that we have so far.
sourcepub fn num_bytes_missing(&self) -> usize
pub fn num_bytes_missing(&self) -> usize
Returns the number of bytes of the message body that we still need.
Trait Implementations§
source§impl Clone for IncompleteRelayMsgInfo
impl Clone for IncompleteRelayMsgInfo
source§fn clone(&self) -> IncompleteRelayMsgInfo
fn clone(&self) -> IncompleteRelayMsgInfo
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IncompleteRelayMsgInfo
impl RefUnwindSafe for IncompleteRelayMsgInfo
impl Send for IncompleteRelayMsgInfo
impl Sync for IncompleteRelayMsgInfo
impl Unpin for IncompleteRelayMsgInfo
impl UnwindSafe for IncompleteRelayMsgInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more