pub struct PayloadKindBitmap(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl PayloadKindBitmap
impl PayloadKindBitmap
pub const TENSOR: u32 = 0x0000_0001
pub const TOKEN_CHUNK: u32 = 0x0000_0002
pub const AUDIO_CHUNK: u32 = 0x0000_0004
pub const VIDEO_CHUNK: u32 = 0x0000_0008
pub const STRUCTURED_EVENT: u32 = 0x0000_0010
pub const TOOL_DELTA: u32 = 0x0000_0020
pub const OPAQUE_BYTES: u32 = 0x0000_0040
pub fn validate(self) -> Result<(), NnrpError>
pub fn contains_tensor(self) -> bool
pub fn contains(self, family: PayloadFamily) -> bool
Trait Implementations§
Source§impl Clone for PayloadKindBitmap
impl Clone for PayloadKindBitmap
Source§fn clone(&self) -> PayloadKindBitmap
fn clone(&self) -> PayloadKindBitmap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PayloadKindBitmap
Source§impl Debug for PayloadKindBitmap
impl Debug for PayloadKindBitmap
impl Eq for PayloadKindBitmap
Source§impl PartialEq for PayloadKindBitmap
impl PartialEq for PayloadKindBitmap
impl StructuralPartialEq for PayloadKindBitmap
Auto Trait Implementations§
impl Freeze for PayloadKindBitmap
impl RefUnwindSafe for PayloadKindBitmap
impl Send for PayloadKindBitmap
impl Sync for PayloadKindBitmap
impl Unpin for PayloadKindBitmap
impl UnsafeUnpin for PayloadKindBitmap
impl UnwindSafe for PayloadKindBitmap
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