[−][src]Struct frugalos_segment::Client
セグメントにアクセスるために使用するクライアント。
Methods
impl Client
[src]
pub fn new(
logger: Logger,
rpc_service: RpcServiceHandle,
config: ClientConfig,
ec: Option<ErasureCoder>
) -> Self
[src]
logger: Logger,
rpc_service: RpcServiceHandle,
config: ClientConfig,
ec: Option<ErasureCoder>
) -> Self
新しいClient
インスタンスを生成する。
pub fn get(
&self,
id: ObjectId,
deadline: Deadline,
parent: SpanHandle
) -> impl Future<Item = Option<ObjectValue>, Error = Error>
[src]
&self,
id: ObjectId,
deadline: Deadline,
parent: SpanHandle
) -> impl Future<Item = Option<ObjectValue>, Error = Error>
オブジェクトを取得する。
pub fn head(
&self,
id: ObjectId,
parent: SpanHandle
) -> impl Future<Item = Option<ObjectVersion>, Error = Error>
[src]
&self,
id: ObjectId,
parent: SpanHandle
) -> impl Future<Item = Option<ObjectVersion>, Error = Error>
オブジェクトの存在確認を行う。
pub fn put(
&self,
id: ObjectId,
content: Vec<u8>,
deadline: Deadline,
expect: Expect,
parent: SpanHandle
) -> impl Future<Item = (ObjectVersion, bool), Error = Error>
[src]
&self,
id: ObjectId,
content: Vec<u8>,
deadline: Deadline,
expect: Expect,
parent: SpanHandle
) -> impl Future<Item = (ObjectVersion, bool), Error = Error>
オブジェクトを保存する。
pub fn delete(
&self,
id: ObjectId,
_deadline: Deadline,
expect: Expect,
parent: SpanHandle
) -> impl Future<Item = Option<ObjectVersion>, Error = Error>
[src]
&self,
id: ObjectId,
_deadline: Deadline,
expect: Expect,
parent: SpanHandle
) -> impl Future<Item = Option<ObjectVersion>, Error = Error>
オブジェクトを削除する。
pub fn delete_by_version(
&self,
version: ObjectVersion,
_deadline: Deadline,
parent: SpanHandle
) -> impl Future<Item = Option<ObjectVersion>, Error = Error>
[src]
&self,
version: ObjectVersion,
_deadline: Deadline,
parent: SpanHandle
) -> impl Future<Item = Option<ObjectVersion>, Error = Error>
バージョン指定でオブジェクトを削除する。
pub fn delete_by_range(
&self,
targets: Range<ObjectVersion>,
_deadline: Deadline,
parent: SpanHandle
) -> impl Future<Item = Vec<ObjectSummary>, Error = Error>
[src]
&self,
targets: Range<ObjectVersion>,
_deadline: Deadline,
parent: SpanHandle
) -> impl Future<Item = Vec<ObjectSummary>, Error = Error>
バージョンの範囲指定でオブジェクトを削除する。
pub fn delete_by_prefix(
&self,
prefix: ObjectPrefix,
_deadline: Deadline,
parent: SpanHandle
) -> impl Future<Item = DeleteObjectsByPrefixSummary, Error = Error>
[src]
&self,
prefix: ObjectPrefix,
_deadline: Deadline,
parent: SpanHandle
) -> impl Future<Item = DeleteObjectsByPrefixSummary, Error = Error>
IDの接頭辞指定でオブジェクトを削除する。
pub fn list(&self) -> impl Future<Item = Vec<ObjectSummary>, Error = Error>
[src]
保存済みのオブジェクト一覧を取得する。
pub fn latest(&self) -> impl Future<Item = Option<ObjectSummary>, Error = Error>
[src]
セグメント内の最新オブジェクトのバージョンを取得する。
pub fn object_count(&self) -> impl Future<Item = u64, Error = Error>
[src]
セグメント内に保持されているオブジェクトの数を返す.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,