pub struct RaftNode(/* private fields */);
Expand description
RaftNode
contains a set of RaftProcess
es.
Implementations§
source§impl RaftNode
impl RaftNode
sourcepub fn get_driver(&self, lane_id: LaneId) -> RaftDriver
pub fn get_driver(&self, lane_id: LaneId) -> RaftDriver
Get a Raft driver to drive a Raft process on a lane.
sourcepub fn attach_process(&self, lane_id: LaneId, p: RaftProcess)
pub fn attach_process(&self, lane_id: LaneId, p: RaftProcess)
Attach a Raft process to a lane.
sourcepub fn detach_process(&self, lane_id: LaneId)
pub fn detach_process(&self, lane_id: LaneId)
Detach a Raft process from a lane.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RaftNode
impl !RefUnwindSafe for RaftNode
impl Send for RaftNode
impl Sync for RaftNode
impl Unpin for RaftNode
impl !UnwindSafe for RaftNode
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