Struct soketto::extension::Param [−][src]
pub struct Param<'a> { /* fields omitted */ }
Extension parameter (used for negotiation).
Implementations
impl<'a> Param<'a>
[src]
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.