pub struct Via {
pub version: Version,
pub transport: Transport,
pub uri: Uri,
pub params: Vec<Param>,
}
Expand description
The Via
header in its typed form.
Fields
version: Version
transport: Transport
uri: Uri
params: Vec<Param>
Implementations
sourceimpl Via
impl Via
pub fn with_uri(self, uri: Uri) -> Self
pub fn mut_uri(&mut self, uri: Uri) -> &mut Self
pub fn with_uri_param(self, param: Param) -> Self
pub fn mut_uri_param(&mut self, param: Param) -> &mut Self
pub fn with_param(self, param: Param) -> Self
pub fn mut_param(&mut self, param: Param) -> &mut Self
pub fn with_params(self, params: Vec<Param>) -> Self
pub fn mut_params(&mut self, params: Vec<Param>) -> &mut Self
Trait Implementations
sourceimpl<'a> TryFrom<ViaTokenizer<'a>> for Via
impl<'a> TryFrom<ViaTokenizer<'a>> for Via
sourceimpl<'a> TypedHeader<'a> for Via
impl<'a> TypedHeader<'a> for Via
impl Eq for Via
impl StructuralEq for Via
impl StructuralPartialEq for Via
Auto Trait Implementations
impl RefUnwindSafe for Via
impl Send for Via
impl Sync for Via
impl Unpin for Via
impl UnwindSafe for Via
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more