pub enum FieldTooLargeKind {
String,
ByteArray,
Array,
FieldList,
DevFieldList,
}Expand description
Tag identifying which protocol field exceeded its 255-byte u8 cap. Kept
separate so FitError stays heap-free.
Variants§
String
A UTF-8 string field whose null-terminated bytes don’t fit in u8.
ByteArray
A Byte field whose raw byte array doesn’t fit in u8.
Array
A numeric / typed array whose element count overflows u8.
FieldList
A Definition message has more than 255 standard fields.
DevFieldList
A Definition message has more than 255 developer fields.
Trait Implementations§
Source§impl Clone for FieldTooLargeKind
impl Clone for FieldTooLargeKind
Source§fn clone(&self) -> FieldTooLargeKind
fn clone(&self) -> FieldTooLargeKind
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 moreSource§impl Debug for FieldTooLargeKind
impl Debug for FieldTooLargeKind
Source§impl PartialEq for FieldTooLargeKind
impl PartialEq for FieldTooLargeKind
Source§fn eq(&self, other: &FieldTooLargeKind) -> bool
fn eq(&self, other: &FieldTooLargeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FieldTooLargeKind
impl Eq for FieldTooLargeKind
impl StructuralPartialEq for FieldTooLargeKind
Auto Trait Implementations§
impl Freeze for FieldTooLargeKind
impl RefUnwindSafe for FieldTooLargeKind
impl Send for FieldTooLargeKind
impl Sync for FieldTooLargeKind
impl Unpin for FieldTooLargeKind
impl UnsafeUnpin for FieldTooLargeKind
impl UnwindSafe for FieldTooLargeKind
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