pub struct SendResult {
pub to_peers: HashMap<PeerId, Vec<PacketMut>>,
}Expand description
The outcome of attempting to send packets to peers.
Fields§
§to_peers: HashMap<PeerId, Vec<PacketMut>>Packets to be sent to remote peers.
Trait Implementations§
Source§impl Debug for SendResult
impl Debug for SendResult
Source§impl Default for SendResult
impl Default for SendResult
Source§fn default() -> SendResult
fn default() -> SendResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for SendResult
impl PartialEq for SendResult
Source§fn eq(&self, other: &SendResult) -> bool
fn eq(&self, other: &SendResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SendResult
impl StructuralPartialEq for SendResult
Auto Trait Implementations§
impl Freeze for SendResult
impl RefUnwindSafe for SendResult
impl Send for SendResult
impl Sync for SendResult
impl Unpin for SendResult
impl UnsafeUnpin for SendResult
impl UnwindSafe for SendResult
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> 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