pub enum UploadSessionStatus {
Open {
expires_at_ms: u64,
checksum_algorithm: Option<ChecksumAlgorithm>,
part_size_bytes: Option<u64>,
access: Option<ObjectTransferAccess>,
content_ref: Option<ContentRef>,
},
Completed {
completed_at_ms: u64,
content_ref: ContentRef,
content_token: Option<ContentToken>,
},
Aborted {
aborted_at_ms: u64,
},
}Expand description
The current state of an upload session.
A session starts as Open and permanently ends as Completed or Aborted.
Variants§
Open
Accepting content until its lease passes.
Fields
§
checksum_algorithm: Option<ChecksumAlgorithm>Present for direct_put and direct_multipart sessions.
§
access: Option<ObjectTransferAccess>Present for direct_put sessions; minted fresh on every read.
§
content_ref: Option<ContentRef>Present after content is staged in a service_proxied session.
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, or None after the token minting window closes.
Aborted
Final: the session selected no content and its object is gone.
Trait Implementations§
Source§impl Clone for UploadSessionStatus
impl Clone for UploadSessionStatus
Source§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