pub struct CallbackManager { /* private fields */ }Expand description
Pool of CallbackHandlers. Use to bundle multiple handlers and
expose them as a single Observer entry on RunnableConfig.
Implementations§
Source§impl CallbackManager
impl CallbackManager
Sourcepub fn push(self, h: Arc<dyn CallbackHandler>) -> Self
pub fn push(self, h: Arc<dyn CallbackHandler>) -> Self
Append a handler.
Sourcepub fn handlers(&self) -> &[Arc<dyn CallbackHandler>]
pub fn handlers(&self) -> &[Arc<dyn CallbackHandler>]
Borrow the registered handlers (read-only).
Trait Implementations§
Source§impl Default for CallbackManager
impl Default for CallbackManager
Source§fn default() -> CallbackManager
fn default() -> CallbackManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CallbackManager
impl !RefUnwindSafe for CallbackManager
impl Send for CallbackManager
impl Sync for CallbackManager
impl Unpin for CallbackManager
impl UnsafeUnpin for CallbackManager
impl !UnwindSafe 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