[][src]Enum servo_url::origin::ImmutableOrigin

pub enum ImmutableOrigin {
    Opaque(OpaqueOrigin),
    Tuple(StringHostu16),
}

The origin of an URL

Variants

Opaque(OpaqueOrigin)

A globally unique identifier

Tuple(StringHostu16)

Consists of the URL's scheme, host and port

Implementations

impl ImmutableOrigin[src]

pub fn new(origin: Origin) -> ImmutableOrigin[src]

pub fn same_origin(&self, other: &MutableOrigin) -> bool[src]

pub fn same_origin_domain(&self, other: &MutableOrigin) -> bool[src]

pub fn new_opaque() -> ImmutableOrigin[src]

Creates a new opaque origin that is only equal to itself.

pub fn scheme(&self) -> Option<&str>[src]

pub fn host(&self) -> Option<&Host>[src]

pub fn port(&self) -> Option<u16>[src]

pub fn into_url_origin(self) -> Origin[src]

pub fn is_tuple(&self) -> bool[src]

Return whether this origin is a (scheme, host, port) tuple (as opposed to an opaque origin).

pub fn ascii_serialization(&self) -> String[src]

Trait Implementations

impl Clone for ImmutableOrigin[src]

impl Debug for ImmutableOrigin[src]

impl<'de> Deserialize<'de> for ImmutableOrigin[src]

impl Eq for ImmutableOrigin[src]

impl Hash for ImmutableOrigin[src]

impl MallocSizeOf for ImmutableOrigin[src]

impl PartialEq<ImmutableOrigin> for ImmutableOrigin[src]

impl Serialize for ImmutableOrigin[src]

impl StructuralEq for ImmutableOrigin[src]

impl StructuralPartialEq for ImmutableOrigin[src]

Auto Trait Implementations

impl RefUnwindSafe for ImmutableOrigin

impl Send for ImmutableOrigin

impl Sync for ImmutableOrigin

impl Unpin for ImmutableOrigin

impl UnwindSafe for ImmutableOrigin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]