pub struct ComponentInfo { /* private fields */ }Expand description
ComponentInfo describes an active component. It provides the component type and the sender for the component. It is assembled during the config startup phase and sent to each coordinator.
Implementations§
Source§impl ComponentInfo
impl ComponentInfo
Sourcepub const fn new(component: Component, sender: ComponentSender) -> Self
pub const fn new(component: Component, sender: ComponentSender) -> Self
Creates and new ComponentInfo struct and returns it.
Sourcepub const fn sender(&self) -> &ComponentSender
pub const fn sender(&self) -> &ComponentSender
Get a reference to the sender for this component
Trait Implementations§
Source§impl Clone for ComponentInfo
impl Clone for ComponentInfo
Source§fn clone(&self) -> ComponentInfo
fn clone(&self) -> ComponentInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentInfo
impl !RefUnwindSafe for ComponentInfo
impl Send for ComponentInfo
impl Sync for ComponentInfo
impl Unpin for ComponentInfo
impl !UnwindSafe for ComponentInfo
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