[][src]Struct blockchain::traits::Operation

pub struct Operation<B: Block, S, A: Auxiliary<B>> {
    pub import_block: Vec<ImportOperation<B, S>>,
    pub set_head: Option<B::Identifier>,
    pub insert_auxiliaries: Vec<A>,
    pub remove_auxiliaries: Vec<A::Key>,
}

Operation for a backend.

Fields

import_block: Vec<ImportOperation<B, S>>

Import operation.

set_head: Option<B::Identifier>

Set head operation.

insert_auxiliaries: Vec<A>

Auxiliaries insertion operation.

remove_auxiliaries: Vec<A::Key>

Auxiliaries removal operation.

Trait Implementations

impl<B: Block, S, A: Auxiliary<B>> Default for Operation<B, S, A>[src]

Auto Trait Implementations

impl<B, S, A> Send for Operation<B, S, A> where
    A: Send,
    B: Send,
    S: Send,
    <B as Block>::Identifier: Send,
    <A as Auxiliary<B>>::Key: Send

impl<B, S, A> Sync for Operation<B, S, A> where
    A: Sync,
    B: Sync,
    S: Sync,
    <B as Block>::Identifier: Sync,
    <A as Auxiliary<B>>::Key: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]