[][src]Struct frugalos_config::ServiceHandle

pub struct ServiceHandle { /* fields omitted */ }

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

Methods

impl ServiceHandle[src]

pub fn get_leader(&self) -> impl Future<Item = SocketAddr, Error = Error>[src]

リーダノードのアドレスを取得する。

pub fn list_servers(
    &self
) -> impl Future<Item = Vec<ServerSummary>, Error = Error>
[src]

クラスタ内のサーバ一覧を返す。

pub fn get_server(
    &self,
    id: ServerId
) -> impl Future<Item = Option<Server>, Error = Error>
[src]

IDに対応するサーバの情報を返す。

pub fn put_server(
    &self,
    server: Server
) -> impl Future<Item = Server, Error = Error>
[src]

サーバをクラスタに追加する。

pub fn delete_server(
    &self,
    id: ServerId
) -> impl Future<Item = Option<Server>, Error = Error>
[src]

サーバをクラスタから削除する。

pub fn list_devices(
    &self
) -> impl Future<Item = Vec<DeviceSummary>, Error = Error>
[src]

クラスタ内のデバイス一覧を取得する。

pub fn get_device(
    &self,
    id: DeviceId
) -> impl Future<Item = Option<Device>, Error = Error>
[src]

IDに対応するデバイスを取得する。

pub fn put_device(
    &self,
    device: Device
) -> impl Future<Item = Device, Error = Error>
[src]

デバイスを登録する。

pub fn delete_device(
    &self,
    id: DeviceId
) -> impl Future<Item = Option<Device>, Error = Error>
[src]

デバイスを削除する。

pub fn list_buckets(
    &self
) -> impl Future<Item = Vec<BucketSummary>, Error = Error>
[src]

クラスタ内のバケツ一覧を取得する。

pub fn get_bucket(
    &self,
    id: BucketId
) -> impl Future<Item = Option<Bucket>, Error = Error>
[src]

IDに対応するバケツの情報を取得する。

pub fn put_bucket(
    &self,
    bucket: Bucket
) -> impl Future<Item = Bucket, Error = Error>
[src]

バケツを登録する。

pub fn delete_bucket(
    &self,
    id: BucketId
) -> impl Future<Item = Option<Bucket>, Error = Error>
[src]

バケツを削除する。

Trait Implementations

impl Clone for ServiceHandle[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ServiceHandle[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]