pub struct NamedPipePoller { /* private fields */ }Expand description
Stateful helper that diffs successive named-pipe snapshots.
Implementations§
Source§impl NamedPipePoller
impl NamedPipePoller
Sourcepub fn poll(&mut self) -> Result<Vec<NamedPipeChange>>
pub fn poll(&mut self) -> Result<Vec<NamedPipeChange>>
Replace the current baseline with the latest snapshot and return detected changes.
Sourcepub fn seed(&mut self) -> Result<usize>
pub fn seed(&mut self) -> Result<usize>
Seed the baseline from the current snapshot without reporting any changes.
Sourcepub fn poll_interval(
&mut self,
rounds: usize,
interval: Duration,
) -> Result<Vec<Vec<NamedPipeChange>>>
pub fn poll_interval( &mut self, rounds: usize, interval: Duration, ) -> Result<Vec<Vec<NamedPipeChange>>>
Poll for a fixed number of rounds with a sleep interval between rounds.
Trait Implementations§
Source§impl Debug for NamedPipePoller
impl Debug for NamedPipePoller
Source§impl Default for NamedPipePoller
impl Default for NamedPipePoller
Source§fn default() -> NamedPipePoller
fn default() -> NamedPipePoller
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NamedPipePoller
impl RefUnwindSafe for NamedPipePoller
impl Send for NamedPipePoller
impl Sync for NamedPipePoller
impl Unpin for NamedPipePoller
impl UnsafeUnpin for NamedPipePoller
impl UnwindSafe for NamedPipePoller
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