[][src]Struct frugalos_mds::Node

pub struct Node { /* fields omitted */ }

MDSのクラスタを形成する個々のノード.

この構造体はStreamトレイトを実装しており、 MDSが受理したイベント(i.e., メタデータオブジェクトの追加と削除)列を生成する. なお、これは無限ストリームであり、エラー時を除いて自発的に終了することはない.

Implementations

impl Node[src]

pub fn new(
    logger: Logger,
    config: &FrugalosMdsConfig,
    service: ServiceHandle,
    node_id: NodeId,
    cluster: ClusterMembers,
    io: RaftIo,
    rpc_service: RpcServiceHandle
) -> Result<Self>
[src]

新しいNodeインスタンスを生成する.

pub fn get_next_commit(&self) -> LogIndex[src]

Returns next_commit.

Trait Implementations

impl Drop for Node[src]

impl Stream for Node[src]

type Item = Event

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

impl !RefUnwindSafe for Node

impl Send for Node

impl !Sync for Node

impl Unpin for Node

impl !UnwindSafe for Node

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.