pub enum UploadSessionStatus {
Open {
expires_at_ms: u64,
},
Completed {
completed_at_ms: u64,
content_ref: ContentRef,
content_token: Option<ContentToken>,
},
Aborted {
aborted_at_ms: u64,
},
}Expand description
Observed state of an upload session.
A session starts as Open and ends as either Completed or Aborted.
Both final states are permanent. Reading a completed session issues a new
receipt for the durable content, so a lost commit response does not require
the content to be uploaded again.
Variants§
Open
Accepting content until its lease passes.
Fields
Completed
Final: the content is durable and verified.
Fields
§
content_ref: ContentRefVerified content selected by this session.
§
content_token: Option<ContentToken>Fresh proof for a later commit. This is absent after the token
minting window closes, while content_ref remains available.
Aborted
Final: the session selected no content and its object is gone.
Trait Implementations§
Source§impl Clone for UploadSessionStatus
impl Clone for UploadSessionStatus
Source§fn clone(&self) -> UploadSessionStatus
fn clone(&self) -> UploadSessionStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadSessionStatus
impl Debug for UploadSessionStatus
Source§impl<'de> Deserialize<'de> for UploadSessionStatus
impl<'de> Deserialize<'de> for UploadSessionStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UploadSessionStatus
Source§impl PartialEq for UploadSessionStatus
impl PartialEq for UploadSessionStatus
Source§impl Serialize for UploadSessionStatus
impl Serialize for UploadSessionStatus
impl StructuralPartialEq for UploadSessionStatus
Auto Trait Implementations§
impl Freeze for UploadSessionStatus
impl RefUnwindSafe for UploadSessionStatus
impl Send for UploadSessionStatus
impl Sync for UploadSessionStatus
impl Unpin for UploadSessionStatus
impl UnsafeUnpin for UploadSessionStatus
impl UnwindSafe for UploadSessionStatus
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