Skip to main content

MemoryStorage

Type Alias MemoryStorage 

Source
pub type MemoryStorage = StorageConnection<MemoryProvider>;
Expand description

Clones share a provider’s durable objects and sessions across simulated crashes. Publication is timestamped by the injected clock and retains the upload’s identity after pending parts are discarded. Faults can lose part/completion replies or expire pending sessions without losing published objects.

Self::for_recipient shares the backend with a separate account and sign-in. Grants and acceptance govern that account’s reads, writes and uploads; revoking it leaves the owner and other recipients untouched. Clones share their account’s tokens, and replacement tokens govern subsequent calls on the same adapter. A token named by Self::reject_access_token is refused as a provider 401 would be: the call refreshes once through its connection’s custody and retries once, as the HTTP adapters do (§20.2). S3 console keys are outside this account-sharing model. Implements crate::providers::StorageConnector so application tests can exercise saved settings and credential custody through the test-utils builder’s connector hook.

Aliased Type§

pub struct MemoryStorage { /* private fields */ }