pub enum LifecycleMessage {
Load,
}Expand description
Message that is sent to the object when it reaches specific parts of its life cycle
Variants§
Load
Trait Implementations§
Source§impl Debug for LifecycleMessage
impl Debug for LifecycleMessage
Source§impl<'de> Deserialize<'de> for LifecycleMessage
impl<'de> Deserialize<'de> for LifecycleMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Handler<LifecycleMessage> for T
impl<T> Handler<LifecycleMessage> for T
type Returns = ()
type Error = ServiceObjectLifeCycleError
fn handle<'life0, 'async_trait>(
&'life0 mut self,
message: LifecycleMessage,
context: Arc<AppData>,
) -> Pin<Box<dyn Future<Output = Result<Self::Returns, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl IdentifiableType for LifecycleMessage
impl IdentifiableType for LifecycleMessage
fn user_defined_type_id() -> &'static str
Source§fn instance_type_id(&self) -> &'static str
fn instance_type_id(&self) -> &'static str
Same as IdentifiableType::user_defined_type_id, but it can be
called directly from the struct instance. This is handy for when
one uses impl Trait instead of generic
Source§impl Serialize for LifecycleMessage
impl Serialize for LifecycleMessage
impl Message for LifecycleMessage
Auto Trait Implementations§
impl Freeze for LifecycleMessage
impl RefUnwindSafe for LifecycleMessage
impl Send for LifecycleMessage
impl Sync for LifecycleMessage
impl Unpin for LifecycleMessage
impl UnsafeUnpin for LifecycleMessage
impl UnwindSafe for LifecycleMessage
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more