#[non_exhaustive]pub enum LifecycleEvent {
ChatDestroyed(Id),
SpaceDestroyed(Id),
SpaceBanCreated(SpaceBan),
}Available on crate feature
memory only.Expand description
One lifecycle callback received by the MemoryBackend, as
returned by MemoryBackend::drain_lifecycle_events.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ChatDestroyed(Id)
ChatEvents::on_chat_destroyed with this Chat id.
SpaceDestroyed(Id)
ChatEvents::on_space_destroyed with this Space id.
SpaceBanCreated(SpaceBan)
ChatEvents::on_space_ban_created with this ban.
Trait Implementations§
Source§impl Clone for LifecycleEvent
impl Clone for LifecycleEvent
Source§impl Debug for LifecycleEvent
impl Debug for LifecycleEvent
Source§impl PartialEq for LifecycleEvent
impl PartialEq for LifecycleEvent
impl StructuralPartialEq for LifecycleEvent
Auto Trait Implementations§
impl Forget for LifecycleEvent
impl Freeze for LifecycleEvent
impl Move for LifecycleEvent
impl RefUnwindSafe for LifecycleEvent
impl Send for LifecycleEvent
impl Sync for LifecycleEvent
impl Unpin for LifecycleEvent
impl UnsafeUnpin for LifecycleEvent
impl UnwindSafe for LifecycleEvent
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