pub struct EvidentPublisher<K, M, T, F>where
    K: Id + CaptureControl,
    M: Msg,
    T: EventEntry<K, M>,
    F: Filter<K, M>,{ /* private fields */ }

Implementations§

§

impl<K, M, T, F> EvidentPublisher<K, M, T, F>where K: Id + CaptureControl, M: Msg, T: EventEntry<K, M>, F: Filter<K, M>,

pub fn new( on_event: impl FnMut(Event<K, M, T>) + Send + 'static, capture_mode: CaptureMode, capture_channel_bound: usize, subscription_channel_bound: usize, time_stamp_kind: EventTimestampKind ) -> EvidentPublisher<K, M, T, F>

pub fn with( on_event: impl FnMut(Event<K, M, T>) + Send + 'static, filter: F, capture_mode: CaptureMode, capture_channel_bound: usize, subscription_channel_bound: usize, timestamp_kind: EventTimestampKind ) -> EvidentPublisher<K, M, T, F>

pub fn get_filter(&self) -> &Option<F>

pub fn entry_allowed(&self, entry: &impl EventEntry<K, M>) -> bool

pub fn _capture<I>(&self, interm_event: &mut I)where I: IntermediaryEvent<K, M, T>,

pub fn get_capture_mode(&self) -> CaptureMode

pub fn set_capture_mode(&self, mode: CaptureMode)

pub fn get_missed_captures(&self) -> usize

pub fn reset_missed_captures(&self)

pub fn subscribe( &self, id: K ) -> Result<Subscription<'_, K, M, T, F>, SubscriptionError<K>>

pub fn subscribe_to_many( &self, ids: Vec<K, Global> ) -> Result<Subscription<'_, K, M, T, F>, SubscriptionError<K>>

pub fn subscribe_to_all_events( &self ) -> Result<Subscription<'_, K, M, T, F>, SubscriptionError<K>>

pub fn is_capturing(&self) -> bool

pub fn start(&self)

pub fn stop(&self)

pub fn on_event(&self, event: Event<K, M, T>)

Auto Trait Implementations§

§

impl<K, M, T, F> RefUnwindSafe for EvidentPublisher<K, M, T, F>where F: RefUnwindSafe,

§

impl<K, M, T, F> Send for EvidentPublisher<K, M, T, F>where F: Send,

§

impl<K, M, T, F> Sync for EvidentPublisher<K, M, T, F>where F: Sync,

§

impl<K, M, T, F> Unpin for EvidentPublisher<K, M, T, F>where F: Unpin,

§

impl<K, M, T, F> UnwindSafe for EvidentPublisher<K, M, T, F>where F: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V