[][src]Struct frugalos_config::Service

pub struct Service { /* fields omitted */ }

構成管理用のサービス。

Implementations

impl Service[src]

pub fn new<P: AsRef<Path>, S: Spawn + Clone + Send + 'static>(
    logger: Logger,
    data_dir: P,
    rpc_builder: &mut RpcServerBuilder,
    rpc_service: RpcServiceHandle,
    raft_service: ServiceHandle,
    config: FrugalosConfigConfig,
    spawner: S
) -> Result<Self>
[src]

既にクラスタに登録済みのサーバ用のサービスを起動する

pub fn local_server(&self) -> &Server[src]

ローカルサーバの情報を返す。

pub fn handle(&self) -> ServiceHandle[src]

サービスを操作するためのハンドルを返す。

Trait Implementations

impl Stream for Service[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 Service

impl Send for Service

impl !Sync for Service

impl Unpin for Service

impl !UnwindSafe for Service

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.