pub struct DntFlags(/* private fields */);Expand description
Validated DNT flags.
Implementations§
Source§impl DntFlags
impl DntFlags
Sourcepub const fn internal_bits(self) -> u32
pub const fn internal_bits(self) -> u32
Returns only DNT-owned internal bits.
Sourcepub const fn compact_payload(self) -> Self
pub const fn compact_payload(self) -> Self
Enables compact DNT payload storage.
Sourcepub fn with_user_flag(self, index: u8) -> DntResult<Self>
pub fn with_user_flag(self, index: u8) -> DntResult<Self>
Adds one caller-owned user flag by relative index 0..16.
Trait Implementations§
impl Copy for DntFlags
impl Eq for DntFlags
impl StructuralPartialEq for DntFlags
Auto Trait Implementations§
impl Freeze for DntFlags
impl RefUnwindSafe for DntFlags
impl Send for DntFlags
impl Sync for DntFlags
impl Unpin for DntFlags
impl UnsafeUnpin for DntFlags
impl UnwindSafe for DntFlags
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