pub enum BuildError {
InvalidVcid(Vcid),
InvalidMapId(u8),
InvalidVcfCountLength(u8),
BufferTooSmall {
required_len: usize,
provided_len: usize,
},
FrameTooLarge {
max_len: usize,
provided_len: usize,
},
}Expand description
An error during USLP frame construction.
Variants§
InvalidVcid(Vcid)
VCID exceeds 6-bit range (0-63).
InvalidMapId(u8)
MAP ID exceeds 4-bit range (0-15).
InvalidVcfCountLength(u8)
VCF Count Length exceeds 3-bit range (0-7).
BufferTooSmall
Buffer too small for the frame.
Fields
FrameTooLarge
Frame exceeds the 16-bit Frame Length limit (65536 bytes).
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§fn clone(&self) -> BuildError
fn clone(&self) -> BuildError
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 BuildError
impl Debug for BuildError
Source§impl PartialEq for BuildError
impl PartialEq for BuildError
impl Copy for BuildError
impl Eq for BuildError
impl StructuralPartialEq for BuildError
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildError
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