pub enum WireError {
ReadBufferTooShort,
WriteBufferTooShort,
InvalidValue,
ArrayLength,
InvalidUtf8,
}Expand description
Wire encode/decode errors.
Variants§
ReadBufferTooShort
The buffer to extract a type from is too short to do so.
WriteBufferTooShort
The buffer to write the packed data into is too short.
InvalidValue
Invalid enum or struct value.
If this comes from an enum, consider adding a variant with #[wire(catch_all)] or
#[wire(alternatives = [])].
ArrayLength
Failed to create an array of the correct length.
InvalidUtf8
Valid UTF8 input data is required to decode to a string.
Trait Implementations§
impl Copy for WireError
impl Eq for WireError
impl StructuralPartialEq for WireError
Auto Trait Implementations§
impl Freeze for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnwindSafe for WireError
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