pub enum LtrsError {
LibtorrentError(LibtorrentError),
HttpError(HttpError),
GzipError(GzipError),
I2pError(I2pError),
PcpError(PcpError),
BdecodeError(BdecodeError),
SocksError(SocksError),
UpnpError(UpnpError),
Unknown(i32),
}Variants§
LibtorrentError(LibtorrentError)
HttpError(HttpError)
GzipError(GzipError)
I2pError(I2pError)
PcpError(PcpError)
BdecodeError(BdecodeError)
SocksError(SocksError)
UpnpError(UpnpError)
Unknown(i32)
If error category is not known
Implementations§
Trait Implementations§
Source§impl Error for LtrsError
impl Error for LtrsError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for LtrsError
impl RefUnwindSafe for LtrsError
impl Send for LtrsError
impl Sync for LtrsError
impl Unpin for LtrsError
impl UnwindSafe for LtrsError
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