pub enum WatchControl {
Continue,
Stop,
Coalesce {
delay: Duration,
},
}Expand description
Value returned by the event handler to control the MountWatcher.
Variants§
Continue
Continue watching.
Stop
Stop watching.
Coalesce
After the given delay, call the callback again.
In the event, the current mounts/unmounts will be included, in addition to the new mounts/unmounts that will occur during the delay.
Auto Trait Implementations§
impl Freeze for WatchControl
impl RefUnwindSafe for WatchControl
impl Send for WatchControl
impl Sync for WatchControl
impl Unpin for WatchControl
impl UnwindSafe for WatchControl
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