pub struct SessionHeaderRef<'a> { /* private fields */ }Expand description
Session header reference.
Implementations§
Source§impl<'a> SessionHeaderRef<'a>
impl<'a> SessionHeaderRef<'a>
Source§impl SessionHeaderRef<'_>
impl SessionHeaderRef<'_>
Sourcepub const fn with_timeout(self, timeout: u64) -> Self
pub const fn with_timeout(self, timeout: u64) -> Self
Set the session timeout.
Sourcepub fn into_owned(self) -> SessionHeader
pub fn into_owned(self) -> SessionHeader
Convert the session header into the owned representation.
Trait Implementations§
Source§impl Borrow<SessionHeaderRef<'static>> for SessionHeader
impl Borrow<SessionHeaderRef<'static>> for SessionHeader
Source§fn borrow(&self) -> &SessionHeaderRef<'static>
fn borrow(&self) -> &SessionHeaderRef<'static>
Immutably borrows from an owned value. Read more
Source§impl<'a> Clone for SessionHeaderRef<'a>
impl<'a> Clone for SessionHeaderRef<'a>
Source§fn clone(&self) -> SessionHeaderRef<'a>
fn clone(&self) -> SessionHeaderRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for SessionHeaderRef<'_>
impl Display for SessionHeaderRef<'_>
Source§impl From<SessionHeaderRef<'_>> for HeaderFieldValue
impl From<SessionHeaderRef<'_>> for HeaderFieldValue
Source§fn from(value: SessionHeaderRef<'_>) -> Self
fn from(value: SessionHeaderRef<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<&'a HeaderFieldValue> for SessionHeaderRef<'a>
impl<'a> TryFrom<&'a HeaderFieldValue> for SessionHeaderRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionHeaderRef<'a>
impl<'a> RefUnwindSafe for SessionHeaderRef<'a>
impl<'a> Send for SessionHeaderRef<'a>
impl<'a> Sync for SessionHeaderRef<'a>
impl<'a> Unpin for SessionHeaderRef<'a>
impl<'a> UnsafeUnpin for SessionHeaderRef<'a>
impl<'a> UnwindSafe for SessionHeaderRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more