pub struct CallbackManager { /* private fields */ }Expand description
Callback manager that handles multiple handlers
Implementations§
Source§impl CallbackManager
impl CallbackManager
Sourcepub fn add_handler(self, handler: Arc<dyn CallbackHandler>) -> Self
pub fn add_handler(self, handler: Arc<dyn CallbackHandler>) -> Self
Add a callback handler
Sourcepub fn handlers(&self) -> &[Arc<dyn CallbackHandler>]
pub fn handlers(&self) -> &[Arc<dyn CallbackHandler>]
Get all handlers
Trait Implementations§
Source§impl Clone for CallbackManager
impl Clone for CallbackManager
Source§impl Debug for CallbackManager
impl Debug for CallbackManager
Auto Trait Implementations§
impl !RefUnwindSafe for CallbackManager
impl !UnwindSafe for CallbackManager
impl Freeze for CallbackManager
impl Send for CallbackManager
impl Sync for CallbackManager
impl Unpin for CallbackManager
impl UnsafeUnpin for CallbackManager
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