pub struct StreamObjectLayout { /* private fields */ }Expand description
Delimits sealed stream chunks without buffering the object. The caller reserves the final 64 bytes for the whole-object signature. Acceptance also requires that signature and the plaintext decoder’s end-marker check.
Implementations§
Source§impl StreamObjectLayout
impl StreamObjectLayout
Sourcepub fn chunk_length(&self, prefix: &[u8]) -> Result<usize, Error>
pub fn chunk_length(&self, prefix: &[u8]) -> Result<usize, Error>
Bound a length prefix before fetching or allocating its chunk.
Sourcepub fn encode_chunk(&mut self, bytes: &[u8]) -> Result<Vec<u8>, Error>
pub fn encode_chunk(&mut self, bytes: &[u8]) -> Result<Vec<u8>, Error>
Encode one sealed chunk, checking the canonical chunk partition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamObjectLayout
impl RefUnwindSafe for StreamObjectLayout
impl Send for StreamObjectLayout
impl Sync for StreamObjectLayout
impl Unpin for StreamObjectLayout
impl UnsafeUnpin for StreamObjectLayout
impl UnwindSafe for StreamObjectLayout
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.