Enum liberasurecode::Error [−][src]
pub enum Error { BackendNotSupported, EcMethodNotImplemented, BackendInitError, BackendInUse, BackendNotAvailable, BadChecksum, InvalidParams, BadHeader, InsufficientFragments, Other(u32), }
Possible errors.
Variants
BackendNotSupported
EcMethodNotImplemented
BackendInitError
BackendInUse
BackendNotAvailable
BadChecksum
InvalidParams
BadHeader
InsufficientFragments
Other(u32)
Methods
impl Error
[src]
impl Error
pub fn from_error_code(code: u32) -> Self
[src]
pub fn from_error_code(code: u32) -> Self
Makes a Error
instance from the given codepoint defined in openstack/liberasurecode.
pub fn as_error_code(self) -> u32
[src]
pub fn as_error_code(self) -> u32
Returns the codepoint of the error.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Error
[src]
impl Clone for Error
fn clone(&self) -> Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Error
[src]
impl Copy for Error
impl PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Error) -> bool
[src]
fn ne(&self, other: &Error) -> bool
This method tests for !=
.
impl Eq for Error
[src]
impl Eq for Error
impl Hash for Error
[src]
impl Hash for Error
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error