Enum ddmw_client::err::Error
source · pub enum Error {
Blather(String),
IO(String),
ServerError(Params),
BadState(String),
Disconnected,
BadInput(String),
BadParams(String),
InvalidCredentials(String),
MissingData(String),
Parse(String),
Figment(String),
}
Expand description
ddmw-client
error values.
Variants§
Blather(String)
An error occurred in the Blather communications library.
IO(String)
A std::io
or tokio::io
error occurred.
ServerError(Params)
A DDMW core server return Fail
. The Params
buffer contains details
about the error.
BadState(String)
A state was entered which was unexpected. This can mean that the client expected to receive something from the server, but received something else, which may technically have been okay under different circumstances.
Disconnected
A server disconnected or the client is in a disconnected state.
BadInput(String)
A function or method was called with an invalid/unknown input.
BadParams(String)
A function or method was called with incomplete or ambiguous parameters.
InvalidCredentials(String)
Authentication was requested, but the authentication context is invalid (missing or invalid data).
MissingData(String)
Some expected data is missing.
Parse(String)
Figment(String)
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
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§
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