[−][src]Struct blockchain_network_simple::local::LocalNetwork
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,
P: Unpin,
impl<P, B, S> Sync for LocalNetwork<P, B, S> where
B: Send,
P: Send + Sync,
S: Send,
B: Send,
P: Send + Sync,
S: Send,
impl<P, B, S> Send for LocalNetwork<P, B, S> where
B: Send,
P: Send,
S: Send,
B: Send,
P: Send,
S: Send,
impl<P, B, S> RefUnwindSafe for LocalNetwork<P, B, S> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, B, S> UnwindSafe for LocalNetwork<P, B, S> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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,
T: Any,