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§

Create a new StreamLoop in the given context.

Return a Stream that is equivalent to this StreamLoop once it has been resolved by calling loop_.

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.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.