Struct soketto::extension::Param[][src]

pub struct Param<'a> { /* fields omitted */ }

Extension parameter (used for negotiation).

Implementations

impl<'a> Param<'a>[src]

pub fn new(name: impl Into<Cow<'a, str>>) -> Self[src]

Create a new parameter with the given name.

pub fn name(&self) -> &str[src]

Access the parameter name.

pub fn value(&self) -> Option<&str>[src]

Access the optional parameter value.

pub fn set_value(&mut self, value: Option<impl Into<Cow<'a, str>>>) -> &mut Self[src]

Set the parameter to the given value.

pub fn acquire(self) -> Param<'static>[src]

Turn this parameter into one that owns its values.

Trait Implementations

impl<'a> Clone for Param<'a>[src]

impl<'a> Debug for Param<'a>[src]

impl<'a> Display for Param<'a>[src]

impl<'a> Eq for Param<'a>[src]

impl<'a> PartialEq<Param<'a>> for Param<'a>[src]

impl<'a> StructuralEq for Param<'a>[src]

impl<'a> StructuralPartialEq for Param<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Param<'a>

impl<'a> Send for Param<'a>

impl<'a> Sync for Param<'a>

impl<'a> Unpin for Param<'a>

impl<'a> UnwindSafe for Param<'a>

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> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]