pub struct ToggleWatcher { /* private fields */ }Expand description
Receives toggle events from a user.
Implementations§
Methods from Deref<Target = Tracer<ToggleState>>§
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 ToggleWatcher
impl Clone for ToggleWatcher
Source§fn clone(&self) -> ToggleWatcher
fn clone(&self) -> ToggleWatcher
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 ToggleWatcher
impl Debug for ToggleWatcher
Source§impl Deref for ToggleWatcher
impl Deref for ToggleWatcher
Auto Trait Implementations§
impl Freeze for ToggleWatcher
impl !RefUnwindSafe for ToggleWatcher
impl Send for ToggleWatcher
impl Sync for ToggleWatcher
impl Unpin for ToggleWatcher
impl !UnwindSafe for ToggleWatcher
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