pub struct SecretFrame<'a> { /* private fields */ }Expand description
Borrowed frame over caller-provided private staging and final output.
Implementations§
Source§impl<'a> SecretFrame<'a>
impl<'a> SecretFrame<'a>
Sourcepub fn new<S: Codec>(
codec: &Base64<S>,
maximum_decoded_len: usize,
staging: &'a mut [u8],
output: &'a mut [u8],
) -> Result<Self, SecretDecodeError>
pub fn new<S: Codec>( codec: &Base64<S>, maximum_decoded_len: usize, staging: &'a mut [u8], output: &'a mut [u8], ) -> Result<Self, SecretDecodeError>
Binds disjoint staging and final output before decoding begins.
Sourcepub fn update(
&mut self,
input: &SecretInput<'_>,
) -> Result<Progress, SecretDecodeError>
pub fn update( &mut self, input: &SecretInput<'_>, ) -> Result<Progress, SecretDecodeError>
Consumes one classified chunk without writing final output.
Sourcepub fn finish(self) -> Result<SecretOutput<'a>, SecretDecodeError>
pub fn finish(self) -> Result<SecretOutput<'a>, SecretDecodeError>
Applies the result gate and returns a wiping borrowed output guard.
Sourcepub const fn state(&self) -> &SecretDecoderState
pub const fn state(&self) -> &SecretDecoderState
Returns public decoder metadata without exposing staged bytes.
Trait Implementations§
Source§impl Debug for SecretFrame<'_>
impl Debug for SecretFrame<'_>
Source§impl Drop for SecretFrame<'_>
impl Drop for SecretFrame<'_>
Auto Trait Implementations§
impl<'a> !UnwindSafe for SecretFrame<'a>
impl<'a> Freeze for SecretFrame<'a>
impl<'a> RefUnwindSafe for SecretFrame<'a>
impl<'a> Send for SecretFrame<'a>
impl<'a> Sync for SecretFrame<'a>
impl<'a> Unpin for SecretFrame<'a>
impl<'a> UnsafeUnpin for SecretFrame<'a>
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