[][src]Enum debt64::Kind

pub enum Kind {
    Standard,
    IMAP,
    MIME,
    URL,
    FreenetURL,
}

Kinds

Not all variants are supported. Please follow the wiki article for details.

Variants

Standard

Standard

Character #62 Character #63 Padding Fixed line length Max. line length Line separators Characters outside alphabet
+ / = No None None Forbidden
IMAP

IMAP mailbox names

Character #62 Character #63 Padding Fixed line length Max. line length Line separators Characters outside alphabet
+ , None No None None Forbidden
MIME

For MIME

Character #62 Character #63 Padding Fixed line length Max. line length Line separators Characters outside alphabet
+ / = No 76 \r\n Accepted (discarded)

Notes

  • Encoding produces above line separators.
  • Decoding accepts above line separators and also just a single line feed \n.
  • Decoding does not allow consecutive line separators. For instance \r\n\r\n are not allowed.
URL

URLs and filenames

Character #62 Character #63 Padding Fixed line length Max. line length Line separators Characters outside alphabet
- _ = (optional) No Optional None Forbidden

Notes

  • This implementation has no limit on max line length.
  • Encoding doesn't produce pad characters.
FreenetURL

URLs and filenames in Freenet

Character #62 Character #63 Padding Fixed line length Max. line length Line separators Characters outside alphabet
~ - = No Optional None Forbidden

Notes

  • This implementation has no limit on max line length.

Freenet: https://en.wikipedia.org/wiki/Freenet

Methods

impl Kind[src]

Trait Implementations

impl Debug for Kind[src]

Auto Trait Implementations

impl Send for Kind

impl Sync for Kind

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.