pub enum Outgoing {
Request(Box<NodeRequest>),
Log(Box<LogFrame>),
Shutdown,
}Expand description
One thing to write to the daemon.
Variants§
Request(Box<NodeRequest>)
A protocol request (kind = NodeRequest).
Log(Box<LogFrame>)
A log record (kind = Log, §7.3’s “same framing”).
Shutdown
End the writer once everything queued ahead of this has been flushed.
A sentinel rather than an abort, because a node that closes its
outputs and exits must have that CloseOutputs actually reach the
daemon — otherwise its consumers wait for a producer that has already
gone.
Implementations§
Source§impl Outgoing
impl Outgoing
Sourcepub fn request(request: NodeRequest) -> Self
pub fn request(request: NodeRequest) -> Self
A request.
Sourcepub fn log(subscription: SubscriptionId, record: LogRecord) -> Self
pub fn log(subscription: SubscriptionId, record: LogRecord) -> Self
A log record.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outgoing
impl RefUnwindSafe for Outgoing
impl Send for Outgoing
impl Sync for Outgoing
impl Unpin for Outgoing
impl UnsafeUnpin for Outgoing
impl UnwindSafe for Outgoing
Blanket Implementations§
impl<T> Allocation for T
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