Struct sodium_rust::StreamLoop
source · pub struct StreamLoop<A> {
pub impl_: StreamLoopImpl<A>,
}
Expand description
A forward reference of a Stream
for creating dependency loops.
Fields§
§impl_: StreamLoopImpl<A>
Implementations§
source§impl<A: Send + Clone + 'static> StreamLoop<A>
impl<A: Send + Clone + 'static> StreamLoop<A>
sourcepub fn new(sodium_ctx: &SodiumCtx) -> StreamLoop<A>
pub fn new(sodium_ctx: &SodiumCtx) -> StreamLoop<A>
Create a new StreamLoop
in the given context.
sourcepub fn loop_(&self, sa: &Stream<A>)
pub fn loop_(&self, sa: &Stream<A>)
Resolve the loop to specify what this StreamLoop
was a
forward reference to.
This function must be invoked in the same transaction as the
place where the StreamLoop
is used. This requires you to
create an explicit transaction, either with
SodiumCtx::transaction
or
Transaction::new
.