pub struct FanoutFlowEventObserver { /* private fields */ }Expand description
Observer that forwards every committed event to multiple observers.
Implementations§
Source§impl FanoutFlowEventObserver
impl FanoutFlowEventObserver
pub fn new() -> Self
pub fn from_observers(observers: Vec<Arc<dyn FlowEventObserver>>) -> Self
pub fn with_observer<O>(self, observer: Arc<O>) -> Selfwhere
O: FlowEventObserver + 'static,
pub fn with_dyn_observer(self, observer: Arc<dyn FlowEventObserver>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for FanoutFlowEventObserver
impl Clone for FanoutFlowEventObserver
Source§fn clone(&self) -> FanoutFlowEventObserver
fn clone(&self) -> FanoutFlowEventObserver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FanoutFlowEventObserver
impl Debug for FanoutFlowEventObserver
Source§impl Default for FanoutFlowEventObserver
impl Default for FanoutFlowEventObserver
Source§fn default() -> FanoutFlowEventObserver
fn default() -> FanoutFlowEventObserver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FanoutFlowEventObserver
impl !UnwindSafe for FanoutFlowEventObserver
impl Freeze for FanoutFlowEventObserver
impl Send for FanoutFlowEventObserver
impl Sync for FanoutFlowEventObserver
impl Unpin for FanoutFlowEventObserver
impl UnsafeUnpin for FanoutFlowEventObserver
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