Struct sodium_rust::SodiumCtx

source ·
pub struct SodiumCtx {
    pub impl_: SodiumCtxImpl,
}
Expand description

A context object representing a specific instance of a Sodium system.

Fields§

§impl_: SodiumCtxImpl

Implementations§

Create a new Sodium FRP context.

Create a new constant value Cell in this context.

Create a new stream that will never fire in this context.

Create a new CellSink for interfacing I/O and FRP.

Create a new StreamSink for interfacing I/O and FRP.

Create a new CellLoop to act as a forward reference for a Cell that will be created later.

Create a new StreamLoop to act as a forward reference for a Stream that will be created later.

Create a new StreamSink with a combining function that allows sending multiple event values per transaction.

Run the given function inside a single Sodium transaction, closing the transaction after the function returns.

Create a new scoped transaction object.

The Sodium transaction on this context will be held open until the returned Transaction is dropped or Transaction::close is called explicitly.

Execute the given code after the current transaction is closed, or immediately if there is no current transaction.

Create a new Router in this context.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.