pub struct EventHandlerConventionRule;
Expand description
Example convention rule: Event handlers are transient
Trait Implementations§
Source§impl ConventionRule for EventHandlerConventionRule
impl ConventionRule for EventHandlerConventionRule
Source§fn get_lifetime(&self, type_name: &str) -> Option<ServiceScope>
fn get_lifetime(&self, type_name: &str) -> Option<ServiceScope>
Get lifetime for a type name, return None if rule doesn’t apply
Auto Trait Implementations§
impl Freeze for EventHandlerConventionRule
impl RefUnwindSafe for EventHandlerConventionRule
impl Send for EventHandlerConventionRule
impl Sync for EventHandlerConventionRule
impl Unpin for EventHandlerConventionRule
impl UnwindSafe for EventHandlerConventionRule
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