pub struct EmptyEventHandler;
Expand description
An event-handler that does precisely nothing.
Trait Implementations§
Source§impl Debug for EmptyEventHandler
impl Debug for EmptyEventHandler
Source§impl NodeHandler for EmptyEventHandler
impl NodeHandler for EmptyEventHandler
Source§fn handle_node_request<'e>(
&'e mut self,
_name: Arc<str>,
_context: &'e mut NodeContext<'_>,
) -> NodeHandlerRequestRes
fn handle_node_request<'e>( &'e mut self, _name: Arc<str>, _context: &'e mut NodeContext<'_>, ) -> NodeHandlerRequestRes
Called when a new child-node is to be created. Read more
Source§fn handle_event<'e>(
&'e mut self,
event: &'e mut EventWrapper<'_>,
context: &'e mut NodeContext<'_>,
) -> SubEvent
fn handle_event<'e>( &'e mut self, event: &'e mut EventWrapper<'_>, context: &'e mut NodeContext<'_>, ) -> SubEvent
Source§fn get_comp(&self, _ctype: TypeId) -> Option<&dyn NodeComponent>
fn get_comp(&self, _ctype: TypeId) -> Option<&dyn NodeComponent>
Called by
NodeContext
to fetch a component for a descendant node (or the backbone).Source§fn get_comp_mut(&self, _ctype: TypeId) -> Option<&RefCell<dyn NodeComponent>>
fn get_comp_mut(&self, _ctype: TypeId) -> Option<&RefCell<dyn NodeComponent>>
Called by
NodeContext
to fetch a mutable component for a descendant node (or the backbone).Source§fn get_comp_arc(&self, _ctype: TypeId) -> Option<Arc<dyn NodeComponentSync>>
fn get_comp_arc(&self, _ctype: TypeId) -> Option<Arc<dyn NodeComponentSync>>
Called by
NodeContext
to fetch a async component for a descendant node (or the backbone).Auto Trait Implementations§
impl Freeze for EmptyEventHandler
impl RefUnwindSafe for EmptyEventHandler
impl Send for EmptyEventHandler
impl Sync for EmptyEventHandler
impl Unpin for EmptyEventHandler
impl UnwindSafe for EmptyEventHandler
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<C> NodeComponent for Cwhere
C: 'static,
impl<C> NodeComponent for Cwhere
C: 'static,
Source§fn get_component_name(&self) -> &str
fn get_component_name(&self) -> &str
Returns a internal name for the component.
Source§fn is_of_type(&self, ctype: TypeId) -> bool
fn is_of_type(&self, ctype: TypeId) -> bool
Checks if this component has the given type-id.