pub struct SimulatedObjectStore<O = ProviderObjectStore<MemoryObjects>> { /* private fields */ }Expand description
Immutable-object backend handle controlled by one Simulation.
Trait Implementations§
Source§impl<O: AsyncObjectStore> AsyncObjectStore for SimulatedObjectStore<O>
impl<O: AsyncObjectStore> AsyncObjectStore for SimulatedObjectStore<O>
Source§async fn put(
&self,
object_id: ObjectId,
bytes: Bytes,
budget: WorkBudget,
cancellation: &CancellationToken,
) -> ObjectResult<()>
async fn put( &self, object_id: ObjectId, bytes: Bytes, budget: WorkBudget, cancellation: &CancellationToken, ) -> ObjectResult<()>
Asynchronously admits one verified immutable object.
Source§async fn put_many(
&self,
writes: &[ObjectWrite],
budget: WorkBudget,
cancellation: &CancellationToken,
) -> ObjectResult<()>
async fn put_many( &self, writes: &[ObjectWrite], budget: WorkBudget, cancellation: &CancellationToken, ) -> ObjectResult<()>
Asynchronously admits an ordered bounded group of verified immutable objects. Read more
Source§async fn read(
&self,
object_id: ObjectId,
maximum_bytes: u64,
budget: WorkBudget,
cancellation: &CancellationToken,
) -> ObjectResult<ObjectRead>
async fn read( &self, object_id: ObjectId, maximum_bytes: u64, budget: WorkBudget, cancellation: &CancellationToken, ) -> ObjectResult<ObjectRead>
Asynchronously reads one complete bounded object.
Source§async fn read_many(
&self,
requests: &[ObjectReadRequest],
budget: WorkBudget,
cancellation: &CancellationToken,
) -> ObjectResult<Vec<ObjectRead>>
async fn read_many( &self, requests: &[ObjectReadRequest], budget: WorkBudget, cancellation: &CancellationToken, ) -> ObjectResult<Vec<ObjectRead>>
Asynchronously reads an ordered batch of complete bounded objects. Read more
Source§async fn contains(
&self,
object_id: ObjectId,
budget: WorkBudget,
cancellation: &CancellationToken,
) -> ObjectResult<bool>
async fn contains( &self, object_id: ObjectId, budget: WorkBudget, cancellation: &CancellationToken, ) -> ObjectResult<bool>
Asynchronously probes one exact object identity.
Source§fn decoded_cache_get(
&self,
_key: DecodedCacheKey,
) -> Result<Option<DecodedCacheValue>, ObjectStoreError>
fn decoded_cache_get( &self, _key: DecodedCacheKey, ) -> Result<Option<DecodedCacheValue>, ObjectStoreError>
Returns one exact decoded immutable representation when resident. Read more
Source§fn decoded_cache_admit(
&self,
_key: DecodedCacheKey,
value: DecodedCacheValue,
) -> Result<DecodedCacheAdmission, ObjectStoreError>
fn decoded_cache_admit( &self, _key: DecodedCacheKey, value: DecodedCacheValue, ) -> Result<DecodedCacheAdmission, ObjectStoreError>
Offers one authenticated decoded representation to a disposable cache. Read more
Source§fn flush_before_publish(
&self,
_budget: WorkBudget,
_cancellation: &CancellationToken,
) -> impl Future<Output = ObjectResult<()>> + StorageFuture
fn flush_before_publish( &self, _budget: WorkBudget, _cancellation: &CancellationToken, ) -> impl Future<Output = ObjectResult<()>> + StorageFuture
Makes every previously admitted immutable object crash-durable before
an authority record may reference it. Ordinary stores already provide
that guarantee from
put/put_many; a bounded staging adapter overrides
this boundary to group physical writes without changing publication.Auto Trait Implementations§
impl<O> Freeze for SimulatedObjectStore<O>
impl<O> RefUnwindSafe for SimulatedObjectStore<O>where
Arc<O>: RefUnwindSafe,
impl<O> Send for SimulatedObjectStore<O>
impl<O> Sync for SimulatedObjectStore<O>
impl<O> Unpin for SimulatedObjectStore<O>
impl<O> UnsafeUnpin for SimulatedObjectStore<O>where
Arc<O>: UnsafeUnpin,
impl<O> UnwindSafe for SimulatedObjectStore<O>where
Arc<O>: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request