pub enum GeminiError {
WebSocketError(Error),
SerdeError(Error),
IoError(Error),
ApiError(String),
NotReady,
UnexpectedMessage,
ConnectionClosed,
FunctionHandlerNotFound(String),
SendError,
MissingApiKey,
}
Variants§
WebSocketError(Error)
SerdeError(Error)
IoError(Error)
ApiError(String)
NotReady
UnexpectedMessage
ConnectionClosed
FunctionHandlerNotFound(String)
SendError
MissingApiKey
Trait Implementations§
Source§impl Debug for GeminiError
impl Debug for GeminiError
Source§impl Display for GeminiError
impl Display for GeminiError
Source§impl Error for GeminiError
impl Error for GeminiError
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<Error> for GeminiError
impl From<Error> for GeminiError
Source§impl From<Error> for GeminiError
impl From<Error> for GeminiError
Auto Trait Implementations§
impl !Freeze for GeminiError
impl !RefUnwindSafe for GeminiError
impl Send for GeminiError
impl Sync for GeminiError
impl Unpin for GeminiError
impl !UnwindSafe for GeminiError
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