pub struct OriginId(pub u16);Expand description
Which frontend produced a node: 0 is the host app, extensions get 1+.
Tuple Fields§
§0: u16Implementations§
Source§impl OriginId
impl OriginId
pub const HOST: OriginId
Sourcepub const DEVTOOLS: OriginId
pub const DEVTOOLS: OriginId
The core’s own devtools panel: a node opened
under it is the panel’s, and an event that carries it is acted on
inside handle_input and never handed out. Reserved at the top of
the range so no extension list ever reaches it.
Sourcepub const MENU: OriginId
pub const MENU: OriginId
The core’s own context menu and the menu bar it draws: the same
isolation the
devtools have — a node opened under one of these is the surface’s,
its events are taken back inside handle_input and never handed
out, and no key list has to remember which nodes those were.
pub const MENU_BAR: OriginId
Sourcepub fn is_core_surface(self) -> bool
pub fn is_core_surface(self) -> bool
Whether nodes of this origin are one of the core’s own surfaces.
Trait Implementations§
impl Copy for OriginId
impl Eq for OriginId
impl StructuralPartialEq for OriginId
Auto Trait Implementations§
impl Freeze for OriginId
impl RefUnwindSafe for OriginId
impl Send for OriginId
impl Sync for OriginId
impl Unpin for OriginId
impl UnsafeUnpin for OriginId
impl UnwindSafe for OriginId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.