Struct atm0s_sdn_network::behaviour::BehaviorContext
source · pub struct BehaviorContext {
pub service_id: u8,
pub node_id: NodeId,
pub awaker: Arc<dyn Awaker>,
}Expand description
A struct representing the context of a behavior.
Fields§
§service_id: u8The service ID of the behavior.
node_id: NodeIdThe node ID of the behavior.
awaker: Arc<dyn Awaker>The awaker of the behavior.
Trait Implementations§
source§impl Clone for BehaviorContext
impl Clone for BehaviorContext
source§fn clone(&self) -> BehaviorContext
fn clone(&self) -> BehaviorContext
Returns a copy 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 !RefUnwindSafe for BehaviorContext
impl Send for BehaviorContext
impl Sync for BehaviorContext
impl Unpin for BehaviorContext
impl !UnwindSafe for BehaviorContext
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