pub struct SessionExpires {
pub interval: Duration,
pub refresher: Option<Refresher>,
}Expand description
The Session-Expires header (RFC 4028 §4), also spelled x.
Fields§
§interval: DurationThe interval within which the session must be refreshed.
refresher: Option<Refresher>Who does the refreshing, when the parameter is present.
Absent in a request means “I have no preference”; absent in a response is a peer that has not read RFC 4028 §9, which requires it.
Trait Implementations§
Source§impl Clone for SessionExpires
impl Clone for SessionExpires
Source§fn clone(&self) -> SessionExpires
fn clone(&self) -> SessionExpires
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionExpires
impl Debug for SessionExpires
Source§impl Display for SessionExpires
impl Display for SessionExpires
Source§impl PartialEq for SessionExpires
impl PartialEq for SessionExpires
Source§fn eq(&self, other: &SessionExpires) -> bool
fn eq(&self, other: &SessionExpires) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TypedHeader for SessionExpires
impl TypedHeader for SessionExpires
Source§const NAME: HeaderName = HeaderName::SessionExpires
const NAME: HeaderName = HeaderName::SessionExpires
The header this type reads.
Source§fn decode(value: &[u8]) -> Result<Self, HeaderError>
fn decode(value: &[u8]) -> Result<Self, HeaderError>
Parse one header value. The value arrives unfolded and trimmed.
Source§const VALIDATE_LIST: bool = false
const VALIDATE_LIST: bool = false
Whether
Headers::typed_all must collect and validate the complete field before yielding. Read moreSource§fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
Parse every value in one header row. Read more
Source§fn validate_list(_values: &[&Self]) -> Result<(), HeaderError>
fn validate_list(_values: &[&Self]) -> Result<(), HeaderError>
Validate all decoded values of this field across the complete message. Read more
impl Copy for SessionExpires
impl Eq for SessionExpires
impl StructuralPartialEq for SessionExpires
Auto Trait Implementations§
impl Freeze for SessionExpires
impl RefUnwindSafe for SessionExpires
impl Send for SessionExpires
impl Sync for SessionExpires
impl Unpin for SessionExpires
impl UnsafeUnpin for SessionExpires
impl UnwindSafe for SessionExpires
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