pub struct Outbound {
pub to: String,
pub msg: Message,
}Expand description
One message + recipient that the elector wants to send. The
transport layer (T1.5.6 network half) drains
Transport each loop iteration and writes to the
per-peer TCP connections.
Fields§
§to: StringRecipient. "*" (a sentinel — never a valid node_id since
they’re ASCII ≤ 32 B and operators don’t use stars) means
“broadcast to every peer except self”. The transport
expands the sentinel on its end.
msg: MessageThe message to send.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outbound
impl RefUnwindSafe for Outbound
impl Send for Outbound
impl Sync for Outbound
impl Unpin for Outbound
impl UnsafeUnpin for Outbound
impl UnwindSafe for Outbound
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