pub enum Error<TMessage> {
Configuration(String),
Reqwest(Error),
SendChannel(SendError<TMessage>),
TokioJoin(JoinError),
ResponseCallback(Error),
ComponentCore(ComponentError),
}
Expand description
Ошибки cmp_http_client
Variants§
Configuration(String)
Ошибка конфигурации пользователя
Reqwest(Error)
Reqwest
SendChannel(SendError<TMessage>)
SendChannel
TokioJoin(JoinError)
TokioJoin
ResponseCallback(Error)
ResponseCallback
ComponentCore(ComponentError)
ComponentCore
Trait Implementations§
Source§impl<TMessage> Error for Error<TMessage>
impl<TMessage> Error for Error<TMessage>
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<TMessage> From<ComponentError> for Error<TMessage>
impl<TMessage> From<ComponentError> for Error<TMessage>
Source§fn from(source: ComponentError) -> Self
fn from(source: ComponentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<TMessage> Freeze for Error<TMessage>where
TMessage: Freeze,
impl<TMessage> !RefUnwindSafe for Error<TMessage>
impl<TMessage> Send for Error<TMessage>where
TMessage: Send,
impl<TMessage> Sync for Error<TMessage>where
TMessage: Sync,
impl<TMessage> Unpin for Error<TMessage>where
TMessage: Unpin,
impl<TMessage> !UnwindSafe for Error<TMessage>
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