pub struct TaskHooks {
pub on_complete: Option<BoxFuture<'static, ()>>,
pub on_error: Option<BoxFuture<'static, ()>>,
}
Expand description
Hooks that will be executed on notifications.
If the connection lost, all hooks will be checked whether they need to be executed once reconnected.
Fields
on_complete: Option<BoxFuture<'static, ()>>
on_error: Option<BoxFuture<'static, ()>>
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TaskHooks
impl Send for TaskHooks
impl !Sync for TaskHooks
impl Unpin for TaskHooks
impl !UnwindSafe for TaskHooks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more