pub struct Blobd { /* private fields */ }
Implementations§
Source§impl Blobd
impl Blobd
pub fn cfg(&self) -> &BlobdCfg
pub fn metrics(&self) -> &BlobdMetrics
pub async fn commit_object( &self, input: OpCommitObjectInput, ) -> OpResult<OpCommitObjectOutput>
pub async fn create_object( &self, input: OpCreateObjectInput, ) -> OpResult<OpCreateObjectOutput>
pub async fn delete_object( &self, input: OpDeleteObjectInput, ) -> OpResult<OpDeleteObjectOutput>
pub async fn inspect_object( &self, input: OpInspectObjectInput, ) -> OpResult<OpInspectObjectOutput>
Sourcepub fn list_objects(
&self,
) -> impl Iterator<Item = BlobdListObjectsOutputObject> + '_
pub fn list_objects( &self, ) -> impl Iterator<Item = BlobdListObjectsOutputObject> + '_
WARNING: Use this method sparingly and with awareness of its behaviour:
- Deadlocks could occur if iteration occurs across threads, locks, or await points.
- There could be significant performance drops; some or all state operations (e.g. create, commit, delete) may be locked for the entirety of the iteration.
- There is no guarantee of consistency; object entries could be duplicated or skipped, and how entries for objects that are created, committed, or deleted during iteration are iterated is undefined.
- There is definitely no defined order.
pub async fn read_object( &self, input: OpReadObjectInput, ) -> OpResult<OpReadObjectOutput>
pub async fn write_object<D: AsRef<[u8]>, S: Unpin + Stream<Item = Result<D, Box<dyn Error + Send + Sync>>>>( &self, input: OpWriteObjectInput<D, S>, ) -> OpResult<OpWriteObjectOutput>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blobd
impl !RefUnwindSafe for Blobd
impl Send for Blobd
impl Sync for Blobd
impl Unpin for Blobd
impl !UnwindSafe for Blobd
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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