pub enum PersistResponse {
Stored {
promoted_to_shared: bool,
bytes_used_after: u64,
bytes_quota: Option<u64>,
},
Rejected {
reason: String,
},
QuotaExceeded {
bytes_used: u64,
bytes_quota: u64,
},
}Variants§
Stored
Stored successfully under the user’s namespace and possibly
promoted to _shared.
Rejected
The persist could not be completed; the entry is not stored.
Returned for a malformed key (not 64 hex chars), a payload
that is not valid base64, or an underlying store or provenance
write error. The reason is operator-readable. This is not a
soundness verdict: the server does not re-verify file roots at
persist time, so a hash mismatch never produces Rejected.
QuotaExceeded
Quota exceeded. Reads continue to work; the write is rejected.
Trait Implementations§
Source§impl Clone for PersistResponse
impl Clone for PersistResponse
Source§fn clone(&self) -> PersistResponse
fn clone(&self) -> PersistResponse
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 PersistResponse
impl Debug for PersistResponse
Source§impl<'de> Deserialize<'de> for PersistResponse
impl<'de> Deserialize<'de> for PersistResponse
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 PartialEq for PersistResponse
impl PartialEq for PersistResponse
Source§fn eq(&self, other: &PersistResponse) -> bool
fn eq(&self, other: &PersistResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PersistResponse
impl Serialize for PersistResponse
impl Eq for PersistResponse
impl StructuralPartialEq for PersistResponse
Auto Trait Implementations§
impl Freeze for PersistResponse
impl RefUnwindSafe for PersistResponse
impl Send for PersistResponse
impl Sync for PersistResponse
impl Unpin for PersistResponse
impl UnsafeUnpin for PersistResponse
impl UnwindSafe for PersistResponse
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