pub enum UploadSessionRecordStatus {
Open {
expires_at_ms: u64,
},
Completed {
completed_at_ms: u64,
content_ref: ContentRef,
},
Aborted {
aborted_at_ms: u64,
},
}Expand description
Monotonic status of a durable upload session.
A session starts open and ends as completed or aborted. The terminal update uses compare-and-swap and cannot be reversed.
Variants§
Open
Accepts staged bytes until its lease expires.
Fields
Completed
The content is durable and verified. Only completed sessions can issue receipts or replay completion.
Fields
§
completed_at_ms: u64Unix-millisecond stamp written by the completing compare-and-swap, and the only input to when the content may be reclaimed.
§
content_ref: ContentRefVerified immutable content produced by this session.
Aborted
The session cannot publish content. Its unreferenced object is deleted.
Trait Implementations§
Source§impl Clone for UploadSessionRecordStatus
impl Clone for UploadSessionRecordStatus
Source§impl Debug for UploadSessionRecordStatus
impl Debug for UploadSessionRecordStatus
Source§impl<'de> Deserialize<'de> for UploadSessionRecordStatus
impl<'de> Deserialize<'de> for UploadSessionRecordStatus
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
Source§impl Display for UploadSessionRecordStatus
impl Display for UploadSessionRecordStatus
impl Eq for UploadSessionRecordStatus
impl StructuralPartialEq for UploadSessionRecordStatus
Auto Trait Implementations§
impl Freeze for UploadSessionRecordStatus
impl RefUnwindSafe for UploadSessionRecordStatus
impl Send for UploadSessionRecordStatus
impl Sync for UploadSessionRecordStatus
impl Unpin for UploadSessionRecordStatus
impl UnsafeUnpin for UploadSessionRecordStatus
impl UnwindSafe for UploadSessionRecordStatus
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