pub struct ChannelSink { /* private fields */ }Expand description
A sink backed by a crossbeam bounded channel.
Events are try_send’d — if the channel is full the event is silently
dropped rather than blocking the prover.
Implementations§
Source§impl ChannelSink
impl ChannelSink
Sourcepub fn new(capacity: usize) -> (Self, Receiver<ProofEvent>)
pub fn new(capacity: usize) -> (Self, Receiver<ProofEvent>)
Create a new ChannelSink/receiver pair with capacity slots.
Trait Implementations§
Source§impl ProofEventSink for ChannelSink
impl ProofEventSink for ChannelSink
Auto Trait Implementations§
impl Freeze for ChannelSink
impl RefUnwindSafe for ChannelSink
impl Send for ChannelSink
impl Sync for ChannelSink
impl Unpin for ChannelSink
impl UnsafeUnpin for ChannelSink
impl UnwindSafe for ChannelSink
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