pub struct CoolEventBus { /* private fields */ }Implementations§
Source§impl CoolEventBus
impl CoolEventBus
pub fn subscribe<F>( &self, model: &'static str, operation: ModelEventKind, handler: F, )
pub async fn emit(&self, envelope: CoolEventEnvelope) -> Result<(), CoolError>
Trait Implementations§
Source§impl Clone for CoolEventBus
impl Clone for CoolEventBus
Source§fn clone(&self) -> CoolEventBus
fn clone(&self) -> CoolEventBus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoolEventBus
impl Debug for CoolEventBus
Source§impl Default for CoolEventBus
impl Default for CoolEventBus
Source§fn default() -> CoolEventBus
fn default() -> CoolEventBus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoolEventBus
impl RefUnwindSafe for CoolEventBus
impl Send for CoolEventBus
impl Sync for CoolEventBus
impl Unpin for CoolEventBus
impl UnsafeUnpin for CoolEventBus
impl UnwindSafe for CoolEventBus
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