[][src]Enum magnet_uri::Topic

pub enum Topic {
    TigerTreeHash(String),
    SHA1(String),
    BitPrint(StringString),
    ED2K(String),
    AICH(String),
    Kazaa(String),
    BitTorrentInfoHash(String),
    MD5(String),
}

Topic (hash) of a Magnet URI

Variants

TigerTreeHash(String)

urn:tree:tiger:TTHHash

SHA1(String)

urn:sha1:SHA1Hash

BitPrint(StringString)

urn:bitprint:SHA1Hash.TTHHash

ED2K(String)

urn:ed2k:ED2KHash

AICH(String)

urn:aich:AICHHash

Kazaa(String)

urn:kzhash:KazaaHash

BitTorrentInfoHash(String)

urn:btih:BTInfoHash

MD5(String)

urn:md5:MD5Hash

Trait Implementations

impl Debug for Topic[src]

impl Display for Topic[src]

impl FromStr for Topic[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Topic> for Topic[src]

impl StructuralPartialEq for Topic[src]

Auto Trait Implementations

impl RefUnwindSafe for Topic

impl Send for Topic

impl Sync for Topic

impl Unpin for Topic

impl UnwindSafe for Topic

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.