pub enum Error {
Io(Error),
Utf8(FromUtf8Error),
Ber(BerError),
S101(S101Error),
Glow(GlowError),
Connection(String),
Timeout,
PathNotFound(String),
InvalidOperation(String),
VersionMismatch {
expected: u8,
actual: u8,
},
Rejected(String),
Internal(String),
}Expand description
Ember+ error types.
Variants§
Io(Error)
I/O error during network operations.
Utf8(FromUtf8Error)
UTF-8 conversion error.
Ber(BerError)
BER encoding/decoding error.
S101(S101Error)
S101 framing error.
Glow(GlowError)
Glow protocol error.
Connection(String)
Connection error.
Timeout
Timeout error.
PathNotFound(String)
Path not found in tree.
InvalidOperation(String)
Invalid operation.
VersionMismatch
Protocol version mismatch.
Rejected(String)
Server rejected the request.
Internal(String)
Internal error.
Implementations§
Source§impl Error
impl Error
Sourcepub fn connection<S: Into<String>>(msg: S) -> Self
pub fn connection<S: Into<String>>(msg: S) -> Self
Create a connection error.
Sourcepub fn invalid_operation<S: Into<String>>(msg: S) -> Self
pub fn invalid_operation<S: Into<String>>(msg: S) -> Self
Create an invalid operation error.
Sourcepub fn path_not_found<S: Into<String>>(path: S) -> Self
pub fn path_not_found<S: Into<String>>(path: S) -> Self
Create a path not found error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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