pub struct FakeObjectStore { /* private fields */ }Expand description
Deterministic object-store fake with exact attempt capture and one-shot failures.
Implementations§
Source§impl FakeObjectStore
impl FakeObjectStore
pub async fn fail_next( &self, operation: ObjectStoreOperation, message: impl Into<String>, )
pub async fn attempts(&self) -> Vec<ObjectStoreAttempt>
Trait Implementations§
Source§impl Debug for FakeObjectStore
impl Debug for FakeObjectStore
Source§impl Default for FakeObjectStore
impl Default for FakeObjectStore
Source§fn default() -> FakeObjectStore
fn default() -> FakeObjectStore
Returns the “default value” for a type. Read more
Source§impl ObjectStore for FakeObjectStore
impl ObjectStore for FakeObjectStore
fn put<'life0, 'async_trait>(
&'life0 self,
object: PutObject,
) -> Pin<Box<dyn Future<Output = Result<ObjectMetadata, ObjectStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 ObjectKey,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredObject>, ObjectStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 ObjectKey,
) -> Pin<Box<dyn Future<Output = Result<bool, ObjectStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for FakeObjectStore
impl !RefUnwindSafe for FakeObjectStore
impl Send for FakeObjectStore
impl Sync for FakeObjectStore
impl Unpin for FakeObjectStore
impl UnsafeUnpin for FakeObjectStore
impl UnwindSafe for FakeObjectStore
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