Struct libblobd_direct::Blobd
source · pub struct Blobd { /* private fields */ }
Implementations§
source§impl Blobd
impl Blobd
pub fn cfg(&self) -> &BlobdCfg
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 !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