pub struct Network {}Expand description
Network implementation for gRPC-based Raft communication. Provides the networking layer for Raft nodes to communicate with each other.
Trait Implementations§
Source§impl RaftNetworkFactory<TypeConfig> for Network
Implementation of the RaftNetworkFactory trait for creating new network
connections. This factory creates gRPC client connections to other Raft
nodes.
impl RaftNetworkFactory<TypeConfig> for Network
Implementation of the RaftNetworkFactory trait for creating new network connections. This factory creates gRPC client connections to other Raft nodes.
Source§type Network = NetworkConnection
type Network = NetworkConnection
Actual type of the network handling a single connection.
Source§async fn new_client(
&mut self,
_: u64,
node: &<TypeConfig as RaftTypeConfig>::Node,
) -> Self::Network
async fn new_client( &mut self, _: u64, node: &<TypeConfig as RaftTypeConfig>::Node, ) -> Self::Network
Create a new network instance sending RPCs to the target node. Read more
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnsafeUnpin for Network
impl UnwindSafe for Network
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request