Trait narwhal_network::UnreliableNetwork
source · [−]pub trait UnreliableNetwork<Request: Clone + Send + Sync> {
type Response: Clone + Send + Sync;
fn unreliable_send(
&mut self,
peer: NetworkPublicKey,
message: &Request
) -> Result<JoinHandle<Result<Response<Self::Response>>>>;
fn unreliable_broadcast(
&mut self,
peers: Vec<NetworkPublicKey>,
message: &Request
) -> Vec<Result<JoinHandle<Result<Response<Self::Response>>>>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
{ ... }
}
Required Associated Types
Required Methods
Provided Methods
Broadcasts a message to all peers
passed as an argument.
The attempts to send individual messages are best effort and will not be retried.