pub struct Objects<'a> { /* private fields */ }Implementations§
Source§impl<'a> Objects<'a>
impl<'a> Objects<'a>
Sourcepub fn new(tx: &'a Transaction<'_>, now: u64) -> Result<Self>
pub fn new(tx: &'a Transaction<'_>, now: u64) -> Result<Self>
Use an immediate transaction and propagate errors before committing. This constructor deliberately cannot take an autocommit Connection.
Sourcepub fn expect(&self, grant: &FileGrant, expires_at: u64) -> Result<()>
pub fn expect(&self, grant: &FileGrant, expires_at: u64) -> Result<()>
Reserve the entire object before accepting any chunks. Exact retries do not consume more quota, replace a grant, or extend its local lifetime.
Sourcepub fn stage(&self, sealed: &SealedFile, expires_at: u64) -> Result<()>
pub fn stage(&self, sealed: &SealedFile, expires_at: u64) -> Result<()>
Persist the complete encrypted representation in the message transaction.
pub fn status(&self, id: &str) -> Result<Status>
Sourcepub fn grant(&self, id: &str) -> Result<FileGrant>
pub fn grant(&self, id: &str) -> Result<FileGrant>
Private grant for an already authorized message or local operation.
pub fn missing_chunks(&self, id: &str) -> Result<Vec<u32>>
Sourcepub fn accept_chunk(&self, id: &str, index: u32, bytes: &[u8]) -> Result<()>
pub fn accept_chunk(&self, id: &str, index: u32, bytes: &[u8]) -> Result<()>
Verify before durable storage. Out-of-order arrivals and identical retries are allowed; completion requires a separate whole-file integrity check.
pub fn finish(&self, id: &str) -> Result<()>
pub fn read(&self, id: &str) -> Result<Zeroizing<Vec<u8>>>
Sourcepub fn read_chunk(&self, id: &str, index: u32) -> Result<Zeroizing<Vec<u8>>>
pub fn read_chunk(&self, id: &str, index: u32) -> Result<Zeroizing<Vec<u8>>>
Authenticate one plaintext chunk of a completed object. Completion already checked the whole-file digest; reassemblers should check it again. This reads only the selected ciphertext, not the entire file on every call.
Sourcepub fn transport_manifest(&self, id: &str) -> Result<Manifest>
pub fn transport_manifest(&self, id: &str) -> Result<Manifest>
Reconstruct the public storage manifest after restart from saved immutable chunks and the original deadline. This never exports a private grant.
Sourcepub fn upload_chunk(&self, id: &str, index: u32) -> Result<Vec<u8>>
pub fn upload_chunk(&self, id: &str, index: u32) -> Result<Vec<u8>>
Uploads expose only fully persisted objects, never partial local imports.
pub fn pending_uploads(&self, id: &str) -> Result<Vec<u32>>
Sourcepub fn acknowledge_upload(&self, id: &str, index: u32) -> Result<()>
pub fn acknowledge_upload(&self, id: &str, index: u32) -> Result<()>
Records service storage only; this never means chat delivery or completion.
Sourcepub fn retry_upload(&self, id: &str) -> Result<()>
pub fn retry_upload(&self, id: &str) -> Result<()>
Recover after relay storage loss using the same persisted ciphertext.
pub fn delete(&self, id: &str) -> Result<bool>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Objects<'a>
impl<'a> !Send for Objects<'a>
impl<'a> !Sync for Objects<'a>
impl<'a> !UnwindSafe for Objects<'a>
impl<'a> Forget for Objects<'a>
impl<'a> Freeze for Objects<'a>where
&'a Connection: Freeze,
impl<'a> Move for Objects<'a>
impl<'a> Unpin for Objects<'a>where
&'a Connection: Unpin,
impl<'a> UnsafeUnpin for Objects<'a>where
&'a Connection: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more