Struct NullWatcher

pub struct NullWatcher;

Stub Watcher implementation

Events are never delivered from this watcher.

Trait Implementations

impl Debug for NullWatcher

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Watcher for NullWatcher

fn watch(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>
fn unwatch(&mut self, path: &Path) -> Result<()>
fn new<F: EventHandler>(event_handler: F, config: Config) -> Result<Self>
where
    Self: Sized,
fn configure(&mut self, config: Config) -> Result<bool>
fn kind() -> WatcherKind

Auto Trait Implementations

impl Freeze for NullWatcher

impl RefUnwindSafe for NullWatcher

impl Send for NullWatcher

impl Sync for NullWatcher

impl Unpin for NullWatcher

impl UnsafeUnpin for NullWatcher

impl UnwindSafe for NullWatcher

Blanket Implementations

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for NullWatcher where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for NullWatcher where T: ?Sized,

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

impl<T> From<T> for NullWatcher

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for NullWatcher where U: From<T>,

fn into(self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom<U> for NullWatcher where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for NullWatcher where U: TryFrom<T>,

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