Struct soup::HSTSPolicy
source · #[repr(transparent)]pub struct HSTSPolicy { /* private fields */ }
Implementations§
source§impl HSTSPolicy
impl HSTSPolicy
sourcepub fn as_ptr(&self) -> *mut SoupHSTSPolicy
pub fn as_ptr(&self) -> *mut SoupHSTSPolicy
Return the inner pointer to the underlying C value.
source§impl HSTSPolicy
impl HSTSPolicy
pub fn new(domain: &str, max_age: c_ulong, include_subdomains: bool) -> HSTSPolicy
pub fn from_response(msg: &Message) -> Option<HSTSPolicy>
pub fn new_full(
domain: &str,
max_age: c_ulong,
expires: &DateTime,
include_subdomains: bool
) -> HSTSPolicy
pub fn new_session_policy(domain: &str, include_subdomains: bool) -> HSTSPolicy
pub fn domain(&mut self) -> Option<GString>
pub fn expires(&mut self) -> Option<DateTime>
pub fn max_age(&mut self) -> c_ulong
pub fn includes_subdomains(&mut self) -> bool
pub fn is_expired(&mut self) -> bool
pub fn is_session_policy(&mut self) -> bool
Trait Implementations§
source§impl Clone for HSTSPolicy
impl Clone for HSTSPolicy
source§impl Debug for HSTSPolicy
impl Debug for HSTSPolicy
source§impl Hash for HSTSPolicy
impl Hash for HSTSPolicy
source§impl Ord for HSTSPolicy
impl Ord for HSTSPolicy
source§fn cmp(&self, other: &HSTSPolicy) -> Ordering
fn cmp(&self, other: &HSTSPolicy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<HSTSPolicy> for HSTSPolicy
impl PartialEq<HSTSPolicy> for HSTSPolicy
source§fn eq(&self, other: &HSTSPolicy) -> bool
fn eq(&self, other: &HSTSPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<HSTSPolicy> for HSTSPolicy
impl PartialOrd<HSTSPolicy> for HSTSPolicy
source§fn partial_cmp(&self, other: &HSTSPolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &HSTSPolicy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for HSTSPolicy
impl StaticType for HSTSPolicy
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for HSTSPolicy
impl StructuralEq for HSTSPolicy
impl StructuralPartialEq for HSTSPolicy
Auto Trait Implementations§
impl RefUnwindSafe for HSTSPolicy
impl !Send for HSTSPolicy
impl !Sync for HSTSPolicy
impl Unpin for HSTSPolicy
impl UnwindSafe for HSTSPolicy
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.