pub struct Snapshot { /* private fields */ }Expand description
Immutable snapshot read handle.
Implementations§
Source§impl Snapshot
impl Snapshot
Sourcepub fn reference(&self) -> SnapshotRef
pub fn reference(&self) -> SnapshotRef
Copy the complete opaque snapshot identity for durable application state.
Sourcepub async fn head(
&self,
object_key: impl Into<String>,
options: GetOptions,
) -> Result<ObjectVersion>
pub async fn head( &self, object_key: impl Into<String>, options: GetOptions, ) -> Result<ObjectVersion>
Read immutable object metadata without transferring its body.
§Errors
Returns an error when the service rejects or cannot complete the request.
Sourcepub async fn get(
&self,
object_key: impl Into<String>,
options: GetOptions,
) -> Result<StoredObject>
pub async fn get( &self, object_key: impl Into<String>, options: GetOptions, ) -> Result<StoredObject>
Open a streaming immutable object read.
§Errors
Returns an error when the service rejects the read or violates framing.
Sourcepub async fn list_page(&self, options: ListOptions) -> Result<ListPage>
pub async fn list_page(&self, options: ListOptions) -> Result<ListPage>
Read one page from this immutable snapshot.
§Errors
Returns an error when the service rejects or cannot complete the request.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Snapshot
impl !RefUnwindSafe for Snapshot
impl !UnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
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> 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