Struct dynalock::error::DynaError
[−]
[src]
pub struct DynaError { /* fields omitted */ }
The DynaError type is the only error type that can be returned from this crate's API.
Methods
impl DynaError
[src]
pub fn new(kind: DynaErrorKind, description: Option<&str>) -> Self
[src]
Create a new error object with an optional error message.
pub fn kind(&self) -> DynaErrorKind
[src]
Get DynaErrorKind for this error.
Trait Implementations
impl Debug for DynaError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for DynaError
[src]
fn eq(&self, __arg_0: &DynaError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DynaError) -> bool
[src]
This method tests for !=
.
impl Display for DynaError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for DynaError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<DynaErrorKind> for DynaError
[src]
fn from(kind: DynaErrorKind) -> DynaError
[src]
Performs the conversion.
impl From<SystemTimeError> for DynaError
[src]
fn from(err: SystemTimeError) -> DynaError
[src]
Performs the conversion.
impl From<GetItemError> for DynaError
[src]
fn from(err: GetItemError) -> DynaError
[src]
Performs the conversion.
impl From<UpdateItemError> for DynaError
[src]
fn from(err: UpdateItemError) -> DynaError
[src]
Performs the conversion.