pub struct CellSink<A> {
pub impl_: CellSink<A>,
}
Expand description
Fields§
§impl_: CellSink<A>
Implementations§
source§impl<A: Clone + Send + 'static> CellSink<A>
impl<A: Clone + Send + 'static> CellSink<A>
sourcepub fn new(sodium_ctx: &SodiumCtx, a: A) -> CellSink<A>
pub fn new(sodium_ctx: &SodiumCtx, a: A) -> CellSink<A>
Create a new CellSink
in the given context.
sourcepub fn cell(&self) -> Cell<A>
pub fn cell(&self) -> Cell<A>
Return a Cell
that can be used to create Sodium logic that
will read the values pushed into this CellSink
from the I/O
world.
sourcepub fn send(&self, a: A)
pub fn send(&self, a: A)
Send a value, modifying the value of the cell.
This method may not be called in handlers registered with
Stream::listen
or Cell::listen
.
CellSink
is an operational primitive, meant for interfacing
I/O to FRP only. You aren’t meant to use this to define your
own primitives.
Trait Implementations§
Auto Trait Implementations§
impl<A> !RefUnwindSafe for CellSink<A>
impl<A> Send for CellSink<A>where
A: Send,
impl<A> Sync for CellSink<A>where
A: Send,
impl<A> Unpin for CellSink<A>
impl<A> !UnwindSafe for CellSink<A>
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