[][src]Struct blockchain_network_simple::local::LocalNetwork

pub struct LocalNetwork<P, B, S> { /* fields omitted */ }

Methods

impl<P: Eq + Hash + Clone, B: Clone, S: Clone> LocalNetwork<P, B, S>[src]

pub fn send(&self, peer: &P, message: (P, SimpleSyncMessage<B, S>))[src]

pub fn broadcast(&self, message: (P, SimpleSyncMessage<B, S>))[src]

Auto Trait Implementations

impl<P, B, S> Unpin for LocalNetwork<P, B, S> where
    P: Unpin

impl<P, B, S> Sync for LocalNetwork<P, B, S> where
    B: Send,
    P: Send + Sync,
    S: Send

impl<P, B, S> Send for LocalNetwork<P, B, S> where
    B: Send,
    P: Send,
    S: Send

impl<P, B, S> RefUnwindSafe for LocalNetwork<P, B, S> where
    P: RefUnwindSafe

impl<P, B, S> UnwindSafe for LocalNetwork<P, B, S> where
    P: UnwindSafe

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.