pub struct ObjectStoreService { /* private fields */ }
Expand description
ObjectStore backend
Trait Implementations§
Source§impl Access for ObjectStoreService
impl Access for ObjectStoreService
Source§type Writer = MultipartWriter<ObjectStoreWriter>
type Writer = MultipartWriter<ObjectStoreWriter>
Writer is the associated writer returned in
write
operation.Source§type Deleter = BatchDeleter<ObjectStoreDeleter>
type Deleter = BatchDeleter<ObjectStoreDeleter>
Deleter is the associated deleter returned in
delete
operation.Source§fn info(&self) -> Arc<AccessorInfo>
fn info(&self) -> Arc<AccessorInfo>
Invoke the
info
operation to get metadata of accessor. Read moreSource§async fn stat(&self, path: &str, args: OpStat) -> Result<RpStat>
async fn stat(&self, path: &str, args: OpStat) -> Result<RpStat>
Invoke the
stat
operation on the specified path. Read moreSource§async fn read(&self, path: &str, args: OpRead) -> Result<(RpRead, Self::Reader)>
async fn read(&self, path: &str, args: OpRead) -> Result<(RpRead, Self::Reader)>
Invoke the
read
operation on the specified path, returns a
[Reader
][crate::Reader] if operate successful. Read moreSource§async fn write(
&self,
path: &str,
args: OpWrite,
) -> Result<(RpWrite, Self::Writer)>
async fn write( &self, path: &str, args: OpWrite, ) -> Result<(RpWrite, Self::Writer)>
Invoke the
write
operation on the specified path, returns a
written size if operate successful. Read moreSource§async fn delete(&self) -> Result<(RpDelete, Self::Deleter)>
async fn delete(&self) -> Result<(RpDelete, Self::Deleter)>
Invoke the
delete
operation on the specified path. Read moreSource§async fn list(&self, path: &str, args: OpList) -> Result<(RpList, Self::Lister)>
async fn list(&self, path: &str, args: OpList) -> Result<(RpList, Self::Lister)>
Invoke the
list
operation on the specified path. Read more§fn create_dir(
&self,
path: &str,
args: OpCreateDir,
) -> impl Future<Output = Result<RpCreateDir, Error>> + MaybeSend
fn create_dir( &self, path: &str, args: OpCreateDir, ) -> impl Future<Output = Result<RpCreateDir, Error>> + MaybeSend
Invoke the
create
operation on the specified path Read more§fn copy(
&self,
from: &str,
to: &str,
args: OpCopy,
) -> impl Future<Output = Result<RpCopy, Error>> + MaybeSend
fn copy( &self, from: &str, to: &str, args: OpCopy, ) -> impl Future<Output = Result<RpCopy, Error>> + MaybeSend
Auto Trait Implementations§
impl Freeze for ObjectStoreService
impl !RefUnwindSafe for ObjectStoreService
impl Send for ObjectStoreService
impl Sync for ObjectStoreService
impl Unpin for ObjectStoreService
impl !UnwindSafe for ObjectStoreService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more