Enum lava_torrent::ErrorKind [] [src]

pub enum ErrorKind {
    MalformedBencode,
    IOError,
    MalformedTorrent,
    TorrentBuilderFailure,
}

Works with Error to differentiate between different kinds of errors.

Variants

The bencode is found to be bad before we can parse the torrent, so the torrent may or may not be malformed.

IO error occurred. The bencode and the torrent may or may not be malformed (as we can't verify that).

Bencode is fine, but parsed data is gibberish, so we can't extract a torrent from it.

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ErrorKind
[src]

impl Debug for ErrorKind
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for ErrorKind
[src]

impl Hash for ErrorKind
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for ErrorKind
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind