pub struct Keys(/* private fields */);Expand description
The page’s keys (a handle: clones are the same registry).
Implementations§
Source§impl Keys
impl Keys
Sourcepub fn add(
&self,
member: u64,
component: &str,
decls: Vec<(KeyDecl, KeyRun)>,
) -> KeysHeld
pub fn add( &self, member: u64, component: &str, decls: Vec<(KeyDecl, KeyRun)>, ) -> KeysHeld
decls of component (bus member member), each with what it runs.
Sourcepub fn remove_member(&self, member: u64)
pub fn remove_member(&self, member: u64)
Every entry of member out (it left the bus).
Sourcepub fn on_change(&self, f: Rc<dyn Fn()>)
pub fn on_change(&self, f: Rc<dyn Fn()>)
FRAME-38: f after every change of the entries (none borrowed
while it runs) — the host redraws an open overlay from it.
Sourcepub fn close_overlay(&self)
pub fn close_overlay(&self)
FRAME-38: the overlay closed by the host (the registry emptied).
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Keys
impl !Send for Keys
impl !Sync for Keys
impl !UnwindSafe for Keys
impl Forget for Keys
impl Freeze for Keys
impl Move for Keys
impl Unpin for Keys
impl UnsafeUnpin for Keys
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.