[][src]Struct raft4rs::server::Server

pub struct Server { /* fields omitted */ }

Implementations

impl Server[src]

pub fn new<R>(conf: Config, resolver: R) -> Self where
    R: Resolver + Sync + Send + 'static, 
[src]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,