pub struct SelectorWatcher { /* private fields */ }Expand description
Receives select events from a user.
Implementations§
Methods from Deref<Target = Tracer<SelectorState>>§
Sourcepub fn send(
&self,
data: <T as Flow>::Event,
opt_system_time: Option<SystemTime>,
direction: Option<Direction<ProviderProtocol>>,
)
pub fn send( &self, data: <T as Flow>::Event, opt_system_time: Option<SystemTime>, direction: Option<Direction<ProviderProtocol>>, )
Send an event to a Recorder.
Sourcepub fn subscribe(&mut self) -> Result<Receiver<ActionEnvelope<T>>, Error>
pub fn subscribe(&mut self) -> Result<Receiver<ActionEnvelope<T>>, Error>
Subscribe to the stream of the watcher.
Trait Implementations§
Source§impl Clone for SelectorWatcher
impl Clone for SelectorWatcher
Source§fn clone(&self) -> SelectorWatcher
fn clone(&self) -> SelectorWatcher
Returns a duplicate of the value. Read more
1.0.0 · 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 SelectorWatcher
impl Debug for SelectorWatcher
Source§impl Deref for SelectorWatcher
impl Deref for SelectorWatcher
Auto Trait Implementations§
impl Freeze for SelectorWatcher
impl !RefUnwindSafe for SelectorWatcher
impl Send for SelectorWatcher
impl Sync for SelectorWatcher
impl Unpin for SelectorWatcher
impl !UnwindSafe for SelectorWatcher
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