pub struct Outbox(/* private fields */);Expand description
Handle for publishing into a Service.
This is intended to be held by implementers of ZeekClient to publish events to Zeek, and
is created during e.g., Service::new. Service holds on to the receiving side and will keep
checking it. Dropping the Outbox indicates to the Service that the client is done and will
cause it to terminate, so clients should hold the Outbox for as long as they intend to stay
connected, and explicitly drop it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outbox
impl RefUnwindSafe for Outbox
impl Send for Outbox
impl Sync for Outbox
impl Unpin for Outbox
impl UnwindSafe for Outbox
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