pub struct FormatFlags(/* private fields */);Expand description
Feature flags for PQC Binary Format
Indicates optional features used in the encrypted data.
Implementations§
Source§impl FormatFlags
impl FormatFlags
Sourcepub const fn with_compression(self) -> Self
pub const fn with_compression(self) -> Self
Enable compression flag (bit 0)
Sourcepub const fn with_streaming(self) -> Self
pub const fn with_streaming(self) -> Self
Enable streaming flag (bit 1)
Sourcepub const fn with_additional_auth(self) -> Self
pub const fn with_additional_auth(self) -> Self
Enable additional authentication flag (bit 2)
Sourcepub const fn with_experimental(self) -> Self
pub const fn with_experimental(self) -> Self
Enable experimental features flag (bit 3)
Sourcepub const fn has_compression(self) -> bool
pub const fn has_compression(self) -> bool
Check if compression is enabled
Sourcepub const fn has_streaming(self) -> bool
pub const fn has_streaming(self) -> bool
Check if streaming is enabled
Sourcepub const fn has_additional_auth(self) -> bool
pub const fn has_additional_auth(self) -> bool
Check if additional authentication is enabled
Sourcepub const fn has_experimental(self) -> bool
pub const fn has_experimental(self) -> bool
Check if experimental features are enabled
Trait Implementations§
Source§impl Clone for FormatFlags
impl Clone for FormatFlags
Source§fn clone(&self) -> FormatFlags
fn clone(&self) -> FormatFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatFlags
impl Debug for FormatFlags
Source§impl Default for FormatFlags
impl Default for FormatFlags
Source§impl PartialEq for FormatFlags
impl PartialEq for FormatFlags
impl Copy for FormatFlags
impl Eq for FormatFlags
impl StructuralPartialEq for FormatFlags
Auto Trait Implementations§
impl Freeze for FormatFlags
impl RefUnwindSafe for FormatFlags
impl Send for FormatFlags
impl Sync for FormatFlags
impl Unpin for FormatFlags
impl UnwindSafe for FormatFlags
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