pub struct SecretVecFrame { /* private fields */ }Expand description
Heap frame whose staging and final allocation are reserved before update.
Implementations§
Source§impl SecretVecFrame
impl SecretVecFrame
Sourcepub fn new<S: Codec>(
codec: &Base64<S>,
maximum_decoded_len: usize,
) -> Result<Self, SecretDecodeError>
pub fn new<S: Codec>( codec: &Base64<S>, maximum_decoded_len: usize, ) -> Result<Self, SecretDecodeError>
Preallocates both bounded ranges before plaintext can materialize.
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 releasing plaintext.
Sourcepub fn finish(self) -> Result<SecretVec, SecretDecodeError>
pub fn finish(self) -> Result<SecretVec, SecretDecodeError>
Applies the result gate and returns bounded secret heap storage.
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 SecretVecFrame
Available on crate feature alloc only.
impl Debug for SecretVecFrame
Available on crate feature
alloc only.Source§impl Drop for SecretVecFrame
Available on crate feature alloc only.
impl Drop for SecretVecFrame
Available on crate feature
alloc only.Auto Trait Implementations§
impl Freeze for SecretVecFrame
impl RefUnwindSafe for SecretVecFrame
impl Send for SecretVecFrame
impl Sync for SecretVecFrame
impl Unpin for SecretVecFrame
impl UnsafeUnpin for SecretVecFrame
impl UnwindSafe for SecretVecFrame
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