pub struct InjectableHooksEntry { /* private fields */ }Expand description
An inventory entry that carries lifecycle hook function pointers for one Injectable type.
Implementations§
Source§impl InjectableHooksEntry
impl InjectableHooksEntry
Sourcepub const fn new_const(
type_id_fn: fn() -> TypeId,
post_construct_fn: Option<PostConstructFnPtr>,
make_pre_destruct_fn: Option<MakePreDestructFnPtr>,
) -> Self
pub const fn new_const( type_id_fn: fn() -> TypeId, post_construct_fn: Option<PostConstructFnPtr>, make_pre_destruct_fn: Option<MakePreDestructFnPtr>, ) -> Self
Create a new hooks entry.
Sourcepub fn post_construct_fn(&self) -> Option<PostConstructFnPtr>
pub fn post_construct_fn(&self) -> Option<PostConstructFnPtr>
Returns the post-construct hook function, if any.
Sourcepub fn make_pre_destruct_fn(&self) -> Option<MakePreDestructFnPtr>
pub fn make_pre_destruct_fn(&self) -> Option<MakePreDestructFnPtr>
Returns the pre-destruct adapter factory, if any.
Trait Implementations§
impl Collect for InjectableHooksEntry
Auto Trait Implementations§
impl Freeze for InjectableHooksEntry
impl RefUnwindSafe for InjectableHooksEntry
impl Send for InjectableHooksEntry
impl Sync for InjectableHooksEntry
impl Unpin for InjectableHooksEntry
impl UnsafeUnpin for InjectableHooksEntry
impl UnwindSafe for InjectableHooksEntry
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