pub struct StreamedOpen { /* private fields */ }Implementations§
Source§impl StreamedOpen
impl StreamedOpen
Sourcepub fn begin(
key: &LinkKey,
sealed: &[u8],
compression: ResourceCompression,
) -> Option<StreamedOpen>
pub fn begin( key: &LinkKey, sealed: &[u8], compression: ResourceCompression, ) -> Option<StreamedOpen>
None when the sealed length is no token shape at all. The conclusion’s whole-transfer fallback then refuses it with the stock Malformed.
pub fn advance(&mut self, transfer: &mut [u8], contiguous_byte_len: usize)
Sourcepub fn pending_span(&self, contiguous_byte_len: usize) -> Range<usize> ⓘ
pub fn pending_span(&self, contiguous_byte_len: usize) -> Range<usize> ⓘ
The next chewable whole-block span in token coordinates; empty when the open has caught up with the frontier (or nothing has landed past it yet).
Sourcepub fn caught_up(&self) -> bool
pub fn caught_up(&self) -> bool
Whether conclude has no chewing left to do — the offloaded lane’s
gate between finishing in constant work and parking for another span verdict.
Sourcepub fn chew_span(&mut self, span: &mut [u8])
pub fn chew_span(&mut self, span: &mut [u8])
advance for a span carried away from its transfer — exactly the bytes
pending_span named. This is the pool worker’s whole job: the
span decrypts in place here and the verdict copies it back over its ciphertext.
Sourcepub fn conclude(
self,
transfer: &mut [u8],
) -> Result<OpenedStream<'_>, OpenTransferError>
pub fn conclude( self, transfer: &mut [u8], ) -> Result<OpenedStream<'_>, OpenTransferError>
open_transfer’s refusals in the same order, then the stream with everything absorbed so far banked for the verify.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamedOpen
impl RefUnwindSafe for StreamedOpen
impl Send for StreamedOpen
impl Sync for StreamedOpen
impl Unpin for StreamedOpen
impl UnsafeUnpin for StreamedOpen
impl UnwindSafe for StreamedOpen
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