[−][src]Struct raft4rs::server::Server
Implementations
impl Server
[src]
pub fn new<R>(conf: Config, resolver: R) -> Self where
R: Resolver + Sync + Send + 'static,
[src]
R: Resolver + Sync + Send + 'static,
pub fn start(self: Arc<Server>) -> Arc<Server>
[src]
pub fn stop(&self) -> RaftResult<()>
[src]
pub async fn create_raft<S, '_, '_>(
&'_ self,
id: u64,
start_index: u64,
leader: u64,
replicas: &'_ Vec<u64>,
s: S
) -> RaftResult<Arc<Raft>> where
S: StateMachine + Sync + Send + 'static,
[src]
&'_ self,
id: u64,
start_index: u64,
leader: u64,
replicas: &'_ Vec<u64>,
s: S
) -> RaftResult<Arc<Raft>> where
S: StateMachine + Sync + Send + 'static,
pub async fn remove_raft<'_>(&'_ self, id: u64) -> RaftResult<()>
[src]
pub async fn get_raft<'_>(&'_ self, id: u64) -> RaftResult<Arc<Raft>>
[src]
pub async fn _start_log<'_>(&'_ self, port: u16)
[src]
pub async fn _start_heartbeat<'_>(&'_ self, port: u16)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,