Type Alias msg::constellation_msg::WebViewId

source ·
pub type WebViewId = TopLevelBrowsingContextId;

Aliased Type§

struct WebViewId(pub BrowsingContextId);

Fields§

§0: BrowsingContextId

Implementations§

source§

impl TopLevelBrowsingContextId

source

pub fn new() -> TopLevelBrowsingContextId

source

pub fn install(id: TopLevelBrowsingContextId)

Each script and layout thread should have the top-level browsing context id installed, since it is used by crash reporting.

source

pub fn installed() -> Option<TopLevelBrowsingContextId>

Trait Implementations§

source§

impl Clone for TopLevelBrowsingContextId

source§

fn clone(&self) -> TopLevelBrowsingContextId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TopLevelBrowsingContextId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for TopLevelBrowsingContextId

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for TopLevelBrowsingContextId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for TopLevelBrowsingContextId

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl MallocSizeOf for TopLevelBrowsingContextId

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl Ord for TopLevelBrowsingContextId

source§

fn cmp(&self, other: &TopLevelBrowsingContextId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<BrowsingContextId> for TopLevelBrowsingContextId

source§

fn eq(&self, rhs: &BrowsingContextId) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<TopLevelBrowsingContextId> for TopLevelBrowsingContextId

source§

fn eq(&self, other: &TopLevelBrowsingContextId) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<TopLevelBrowsingContextId> for TopLevelBrowsingContextId

source§

fn partial_cmp(&self, other: &TopLevelBrowsingContextId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for TopLevelBrowsingContextId

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for TopLevelBrowsingContextId

source§

impl Eq for TopLevelBrowsingContextId

source§

impl StructuralEq for TopLevelBrowsingContextId

source§

impl StructuralPartialEq for TopLevelBrowsingContextId