[−][src]Enum torro::error::TorroError
Main error enum containing multiple module-specific errors like BencodeError
for .torrent
(bencode) parsing
All module-specific errors have a From trait implemented by default for
this TorroError and are required to have at least the Debug
derive added
Variants (Non-exhaustive)
BencodeError(BencodeError)
An error relating to the crate::bencode module
TorrentCreationError(TorrentCreationError)
An error relating to the creation of Torrent's (from Torrent::new or Torrent::from_file)
BadFileRead(PathBuf)
When an attemped file read failed, typically happens with Torrent::from_file. See TorroError::BadFileWrite for errors related to file writes
BadFileWrite(PathBuf)
A bad file write occured, typically happens when trying to safe a result of a download without corrent write permissions. See TorroError::BadFileRead for errors related to file reads
Indicates that a call has reached an unimplemented section of the library,
used for placeholder returns instead of the less graceful
unimplemented!()
macro
Trait Implementations
impl Clone for TorroError
[src]
fn clone(&self) -> TorroError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TorroError
[src]
impl From<BencodeError> for TorroError
[src]
fn from(error: BencodeError) -> Self
[src]
impl From<TorrentCreationError> for TorroError
[src]
fn from(error: TorrentCreationError) -> Self
[src]
impl PartialEq<TorroError> for TorroError
[src]
fn eq(&self, other: &TorroError) -> bool
[src]
fn ne(&self, other: &TorroError) -> bool
[src]
impl StructuralPartialEq for TorroError
[src]
Auto Trait Implementations
impl RefUnwindSafe for TorroError
impl Send for TorroError
impl Sync for TorroError
impl Unpin for TorroError
impl UnwindSafe for TorroError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,