[][src]Enum dusk_bytes::Error

pub enum Error {
    InvalidData,
    BadLength {
        found: usize,
        expected: usize,
    },
    InvalidChar {
        ch: char,
        index: usize,
    },
}

Dusk Bytes operation error variants

Variants

InvalidData

Generic error that can be returned in a [Deserializable::from_bytes] implementation

BadLength

Automatically returned from the default implementation of [DeserializableSlice::from_slice] if the slice given is smaller than the mandatory size for the struct.

Fields of BadLength

found: usize

The slice's length

expected: usize

The expected slice's length

InvalidChar

Automatically returned from the default implementation of [ParseHexStr::from_hex_str] if an invalid character is found in the string slice.

Fields of InvalidChar

ch: char

The invalid character found

index: usize

The character's index

Trait Implementations

impl BadLength for Error[src]

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Eq for Error[src]

impl Hash for Error[src]

impl InvalidChar for Error[src]

impl Ord for Error[src]

impl PartialEq<Error> for Error[src]

impl PartialOrd<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl Send for Error[src]

impl Sync for Error[src]

impl Unpin for Error[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.