pub struct BeanDef { /* private fields */ }
Implementations§
source§impl BeanDef
impl BeanDef
pub fn builder() -> BeanDefBuilder
pub fn name(&self) -> &str
pub fn ty(&self) -> &Arc<Type>
pub fn get( &self, context: &Context, ) -> Result<(String, Arc<dyn Any + Send + Sync>), Error>
pub fn init( &self, context: &Context, dyn_bean: Arc<dyn Any + Send + Sync>, ) -> Result<(), Error>
pub fn destroy( &self, context: &Context, dyn_bean: Arc<dyn Any + Send + Sync>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BeanDef
impl !RefUnwindSafe for BeanDef
impl Send for BeanDef
impl Sync for BeanDef
impl Unpin for BeanDef
impl !UnwindSafe for BeanDef
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