[][src]Struct damn_vuln_blockchain::chain::AddBlock

pub struct AddBlock(pub Block, pub usize);

Add Block send block and network_size network_size is required becuase when InitNetwork is called it sets an offset for Block.serial_no = network_size

Trait Implementations

impl Handler<AddBlock> for Chain[src]

type Result = MessageResult<AddBlock>

The type of value that this handler will return. Read more

impl Message for AddBlock[src]

type Result = ChainResult<usize>

The type of value that this message will resolved with if it is successful. Read more

Auto Trait Implementations

impl RefUnwindSafe for AddBlock

impl Send for AddBlock

impl Sync for AddBlock

impl Unpin for AddBlock

impl UnwindSafe for AddBlock

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,