pub struct NullObserver;Expand description
No-op deliberation observer for callers without a live stream.
Trait Implementations§
Source§impl Clone for NullObserver
impl Clone for NullObserver
Source§impl Debug for NullObserver
impl Debug for NullObserver
Source§impl Default for NullObserver
impl Default for NullObserver
Source§impl DeliberationObserverPort for NullObserver
impl DeliberationObserverPort for NullObserver
Source§fn on_phase_changed<'life0, 'life1, 'async_trait>(
&'life0 self,
_task_id: &'life1 TaskId,
_phase: DeliberationPhase,
_emitted_at: OffsetDateTime,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_phase_changed<'life0, 'life1, 'async_trait>(
&'life0 self,
_task_id: &'life1 TaskId,
_phase: DeliberationPhase,
_emitted_at: OffsetDateTime,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when the aggregate transitions into
phase. Read moreAuto Trait Implementations§
impl Freeze for NullObserver
impl RefUnwindSafe for NullObserver
impl Send for NullObserver
impl Sync for NullObserver
impl Unpin for NullObserver
impl UnsafeUnpin for NullObserver
impl UnwindSafe for NullObserver
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