pub struct Component { /* private fields */ }Implementations§
Source§impl Component
impl Component
pub fn new( name: impl Into<String>, instance_factory: InstanceFactory, ty: ComponentType, ) -> Self
pub fn name(&self) -> &str
pub fn component_type(&self) -> ComponentType
pub fn instantiation_mode(&self) -> InstantiationMode
pub fn multiple_instances(&self) -> bool
pub fn service_props(&self) -> &Map<String, Value>
pub fn on_instance_created(&self) -> Option<&OnInstanceCreatedCallback>
pub fn with_instantiation_mode(self, mode: InstantiationMode) -> Self
pub fn with_multiple_instances(self, multiple: bool) -> Self
pub fn with_service_props(self, props: HashMap<String, Value>) -> Self
pub fn with_instance_created_callback<F>(self, callback: F) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Component
impl !RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl !UnwindSafe for Component
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