pub struct Outbox<T> { /* private fields */ }Expand description
A node’s writer on one of its output queues.
Implementations§
Source§impl<T> Outbox<T>
impl<T> Outbox<T>
Sourcepub fn emit(
&mut self,
at: Provenance,
payload: T,
) -> impl Future<Output = ()> + '_
pub fn emit( &mut self, at: Provenance, payload: T, ) -> impl Future<Output = ()> + '_
Sends an event, waiting for room in the queue.
Sourcepub fn gap(&mut self, range: TickRange) -> impl Future<Output = ()> + '_
pub fn gap(&mut self, range: TickRange) -> impl Future<Output = ()> + '_
Tells the readers that range is missing.
Sourcepub fn progress(&mut self, tick: Tick) -> impl Future<Output = ()> + '_
pub fn progress(&mut self, tick: Tick) -> impl Future<Output = ()> + '_
Tells the readers that nothing more comes before tick.
Sourcepub fn progress_sink(&self) -> ProgressSink
pub fn progress_sink(&self) -> ProgressSink
Where a cursor over a contract passes progress on while the decoder reads a frame through it, and where the decoder says what it still holds: this output, without its event type. Every call returns a handle to the same state.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Outbox<T>
impl<T> !Send for Outbox<T>
impl<T> !Sync for Outbox<T>
impl<T> !UnwindSafe for Outbox<T>
impl<T> Freeze for Outbox<T>
impl<T> Unpin for Outbox<T>
impl<T> UnsafeUnpin for Outbox<T>
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