Enum lava_torrent::ErrorKind
[−]
[src]
pub enum ErrorKind { MalformedBencode, IOError, MalformedTorrent, TorrentBuilderFailure, }
Works with Error
to differentiate between different kinds of errors.
Variants
MalformedBencode
The bencode is found to be bad before we can parse the torrent, so the torrent may or may not be malformed.
IOError
IO error occurred. The bencode and the torrent may or may not be malformed (as we can't verify that).
MalformedTorrent
Bencode is fine, but parsed data is gibberish, so we can't extract a torrent from it.
TorrentBuilderFailure
TorrentBuilder
encounters problems when building Torrent
. For
instance, a field is set to an empty string by the caller.
Trait Implementations
impl Clone for ErrorKind
[src]
fn clone(&self) -> ErrorKind
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ErrorKind
[src]
impl Debug for ErrorKind
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for ErrorKind
[src]
impl Hash for ErrorKind
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more