pub enum TelegraphError {
ApiError(String),
RequestError(Error),
ParseError(Error),
IoError(Error),
}
Expand description
Enum of lib errors
Variants§
ApiError(String)
Telegrapth API error
RequestError(Error)
Error occurred when sending the request
ParseError(Error)
Error occurred when parsing data
IoError(Error)
Error occurred when working with files
Trait Implementations§
Source§impl Debug for TelegraphError
impl Debug for TelegraphError
Source§impl<'de> Deserialize<'de> for TelegraphError
impl<'de> Deserialize<'de> for TelegraphError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TelegraphError
impl Display for TelegraphError
Source§impl Error for TelegraphError
impl Error for TelegraphError
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 TelegraphError
impl From<Error> for TelegraphError
Source§impl From<Error> for TelegraphError
impl From<Error> for TelegraphError
Auto Trait Implementations§
impl Freeze for TelegraphError
impl !RefUnwindSafe for TelegraphError
impl Send for TelegraphError
impl Sync for TelegraphError
impl Unpin for TelegraphError
impl !UnwindSafe for TelegraphError
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