pub struct CoordinatorInfo { /* private fields */ }Expand description
CoordinatorInfo describes an active coordinator. It provides the coordinator type and the sender for the coordinator. A coordinator, is a specialization of a component, and shares the same instruction set as all other components and coordinators.
Implementations§
Source§impl CoordinatorInfo
impl CoordinatorInfo
Sourcepub const fn new(
coordinator: String,
sender: Sender<ComponentCmd>,
) -> CoordinatorInfo
pub const fn new( coordinator: String, sender: Sender<ComponentCmd>, ) -> CoordinatorInfo
Creates and new CoordinatorInfo struct and returns it.
Sourcepub const fn coordinator(&self) -> &String
pub const fn coordinator(&self) -> &String
Get the coordinator type for this coordinator
Sourcepub const fn sender(&self) -> &Sender<ComponentCmd>
pub const fn sender(&self) -> &Sender<ComponentCmd>
Get a reference to the sender for this coordinator
Trait Implementations§
Source§impl Clone for CoordinatorInfo
impl Clone for CoordinatorInfo
Source§fn clone(&self) -> CoordinatorInfo
fn clone(&self) -> CoordinatorInfo
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 CoordinatorInfo
impl !RefUnwindSafe for CoordinatorInfo
impl Send for CoordinatorInfo
impl Sync for CoordinatorInfo
impl Unpin for CoordinatorInfo
impl UnsafeUnpin for CoordinatorInfo
impl !UnwindSafe for CoordinatorInfo
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