pub struct BehaviorModuleRegistration {
pub name: String,
pub id: Option<BehaviorModuleId>,
pub behavior_infos: Vec<BehaviorRegistration, Global>,
}Expand description
Contains all registration info for an external behavior module
Usage
Through list_modules, a controller module can retrieve
a list of all registered behaviors. The type id contained in each BehaviorRegistration can
then be used with instance_create to create new instances.
Fields
name: StringThe name of the behavior module
id: Option<BehaviorModuleId>The ModuleDescCid of the module that implements the behavior(s)
behavior_infos: Vec<BehaviorRegistration, Global>The list of behaviors implemented by the behavior module
Trait Implementations
sourceimpl Clone for BehaviorModuleRegistration
impl Clone for BehaviorModuleRegistration
sourcefn clone(&self) -> BehaviorModuleRegistration
fn clone(&self) -> BehaviorModuleRegistration
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for BehaviorModuleRegistration
impl Debug for BehaviorModuleRegistration
sourceimpl<'de> Deserialize<'de> for BehaviorModuleRegistration
impl<'de> Deserialize<'de> for BehaviorModuleRegistration
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<BehaviorModuleRegistration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<BehaviorModuleRegistration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<BehaviorModuleRegistration> for BehaviorModuleRegistration
impl PartialEq<BehaviorModuleRegistration> for BehaviorModuleRegistration
sourcefn eq(&self, other: &BehaviorModuleRegistration) -> bool
fn eq(&self, other: &BehaviorModuleRegistration) -> bool
sourceimpl Serialize for BehaviorModuleRegistration
impl Serialize for BehaviorModuleRegistration
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for BehaviorModuleRegistration
impl StructuralEq for BehaviorModuleRegistration
impl StructuralPartialEq for BehaviorModuleRegistration
Auto Trait Implementations
impl RefUnwindSafe for BehaviorModuleRegistration
impl Send for BehaviorModuleRegistration
impl Sync for BehaviorModuleRegistration
impl Unpin for BehaviorModuleRegistration
impl UnwindSafe for BehaviorModuleRegistration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
