pub struct OutboundMessage {
pub recipient: String,
pub content: String,
pub priority: MessagePriority,
}Expand description
A message to send to a peer.
Fields§
§recipient: StringThe recipient peer ID.
content: StringThe serialized message content.
priority: MessagePriorityThe message priority.
Trait Implementations§
Source§impl Clone for OutboundMessage
impl Clone for OutboundMessage
Auto Trait Implementations§
impl Freeze for OutboundMessage
impl RefUnwindSafe for OutboundMessage
impl Send for OutboundMessage
impl Sync for OutboundMessage
impl Unpin for OutboundMessage
impl UnsafeUnpin for OutboundMessage
impl UnwindSafe for OutboundMessage
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