pub enum UploadSessionStatus {
Open {
expires_at_ms: u64,
},
Completed {
completed_at_ms: u64,
content_ref: ContentRef,
validated_content_token: Option<String>,
},
Aborted {
aborted_at_ms: u64,
},
}Expand description
Observed state of an upload session.
A session is open, then completed or aborted, and both of those are
final. Reading a completed session mints a fresh receipt for content that
is already durable, which is why losing a commit response never costs a
retransfer.
Variants§
Open
Accepting content until its lease passes.
Fields
Completed
Final: the content is durable and verified.
Fields
§
content_ref: ContentRefVerified immutable content this session settled on.
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