Trait SubAccessFnT

Source
pub trait SubAccessFnT<'a>: FnOnce(&'a mut OnChainIdentity, ControllerToken) -> Self::Future {
    type Future: Future<Output = Result<Self::IntoTx, Self::Error>> + OptionalSend + 'a;
    type IntoTx: IntoTransaction<Tx = Self::Tx>;
    type Tx: Transaction + 'a;
    type Error: Into<Box<dyn Error + Sync + Send>>;
}
Expand description

Trait describing the function used to define what operation to perform on a sub-identity.

Required Associated Types§

Source

type Future: Future<Output = Result<Self::IntoTx, Self::Error>> + OptionalSend + 'a

The Future type returned by the closure.

Source

type IntoTx: IntoTransaction<Tx = Self::Tx>

An [IntoTransaction] type.

Source

type Tx: Transaction + 'a

The [Transaction] that encodes the operation to be performed on the sub-identity.

Source

type Error: Into<Box<dyn Error + Sync + Send>>

The error returned by this function

Implementors§

Source§

impl<'a, F, Fut, IntoTx, Tx, E> SubAccessFnT<'a> for F
where F: FnOnce(&'a mut OnChainIdentity, ControllerToken) -> Fut, Fut: Future<Output = Result<IntoTx, E>> + OptionalSend + 'a, IntoTx: IntoTransaction<Tx = Tx>, Tx: Transaction + 'a, E: Into<Box<dyn Error + Sync + Send>>,

Source§

type Future = Fut

Source§

type IntoTx = IntoTx

Source§

type Tx = Tx

Source§

type Error = E