[][src]Struct cookie::EncodedCookie

pub struct EncodedCookie<'a, 'c: 'a>(_);

Wrapper around Cookie whose Display implementation percent-encodes the cookie's name and value.

A value of this type can be obtained via the encoded method on Cookie. This type should only be used for its Display implementation.

This type is only available when the percent-encode feature is enabled.

Example

use cookie::Cookie;

let mut c = Cookie::new("my name", "this; value?");
assert_eq!(&c.encoded().to_string(), "my%20name=this%3B%20value%3F");

Trait Implementations

impl<'a, 'c: 'a> Display for EncodedCookie<'a, 'c>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, 'c> Send for EncodedCookie<'a, 'c>

impl<'a, 'c> Sync for EncodedCookie<'a, 'c>

Blanket Implementations

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

Performs the conversion.

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

Converts the given value to a String. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Mutably borrows from an owned value. Read more