Enum bpx::error::Error[][src]

pub enum Error {
Show variants Checksum(u32u32), Io(Error), TypeError(&'static str, &'static str), PropCountExceeded(usize), MissingProp(&'static str), Truncation(&'static str), Corruption(String), Utf8(&'static str), Unsupported(String), Capacity(usize), Deflate(&'static str), Inflate(&'static str), Other(String),
}
Expand description

Represents a BPX error

Variants

Checksum(u32u32)

Describes a checksum error

Arguments

  • expected checksum value
  • actual checksum value
Io(Error)

Describes an io error

Arguments

  • the error that occured
TypeError(&'static str, &'static str)

Describes a type conversion error (Structured Data)

Arguments

  • expected type name
  • actual type name
PropCountExceeded(usize)

Describes too many props or values attempted to be written as part of an Object or Array (Structured Data) (ie exceeds 255)

Arguments

  • actual count of props
MissingProp(&'static str)

Describes a missing property in an object (Structured Data)

Arguments

  • name of missing prop
Truncation(&'static str)

Describes a data truncation error, this means a section or the file itself has been truncated

Arguments

  • last operation name before failure
Corruption(String)

Describes a data corruption error, this means an impossible byte or sequence of bytes has been found

Arguments

  • message
Utf8(&'static str)

Describes an utf8 decoding/encoding error

Arguments

  • last operation name before failure
Unsupported(String)

Describes an operation or flag that is currently unsupported

Arguments

  • message
Capacity(usize)

Describes a section that is too large to be written (ie exceeds 2 pow 32 / 4Gb)

Arguments

  • actual size of section
Deflate(&'static str)

Describes a compression error

Arguments

  • error description string
Inflate(&'static str)

Describes a decompression error

Arguments

  • error description string
Other(String)

Describes a generic unknown error

Arguments

  • error message

Trait Implementations

impl Debug for Error[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for Error[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl From<&'_ str> for Error[src]

fn from(e: &str) -> Self[src]

Performs the conversion.

impl From<Error> for Error[src]

fn from(e: Error) -> Self[src]

Performs the conversion.

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V