pub enum SecureContextType {
Secure,
SecureLocalhost,
InsecureScheme,
InsecureAncestor,
}
Expand description
Indicates whether the frame is a secure context and why it is the case.
Variants
Secure
The origin is a secure context.
SecureLocalhost
The host is localhost and hence is considered secure.
InsecureScheme
The origin has an insecure scheme and is not localhost.
InsecureAncestor
One of the ancestor frames is not a secure context.
Trait Implementations
sourceimpl AsRef<str> for SecureContextType
impl AsRef<str> for SecureContextType
sourceimpl Clone for SecureContextType
impl Clone for SecureContextType
sourcefn clone(&self) -> SecureContextType
fn clone(&self) -> SecureContextType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SecureContextType
impl Debug for SecureContextType
sourceimpl<'de> Deserialize<'de> for SecureContextType
impl<'de> Deserialize<'de> for SecureContextType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromStr for SecureContextType
impl FromStr for SecureContextType
sourceimpl Hash for SecureContextType
impl Hash for SecureContextType
sourceimpl PartialEq<SecureContextType> for SecureContextType
impl PartialEq<SecureContextType> for SecureContextType
sourcefn eq(&self, other: &SecureContextType) -> bool
fn eq(&self, other: &SecureContextType) -> bool
sourceimpl Serialize for SecureContextType
impl Serialize for SecureContextType
impl Eq for SecureContextType
impl StructuralEq for SecureContextType
impl StructuralPartialEq for SecureContextType
Auto Trait Implementations
impl RefUnwindSafe for SecureContextType
impl Send for SecureContextType
impl Sync for SecureContextType
impl Unpin for SecureContextType
impl UnwindSafe for SecureContextType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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