[][src]Struct async_fsw::Watcher

pub struct Watcher { /* fields omitted */ }

Implementations

impl Watcher[src]

pub fn new() -> Self[src]

pub fn with_channel(channel: (Sender<Event>, Receiver<Event>)) -> Self[src]

pub fn set_path<S: Into<String>>(&mut self, path: S, mode: WatchMode)[src]

pub fn remove_path(&mut self, path: &str)[src]

pub fn set_channel(&mut self, sender: Sender<Event>, receiver: Receiver<Event>)[src]

pub fn incomming(&self) -> Receiver<Event>[src]

pub async fn observe<'_>(&'_ self) -> Result<Receiver<Event>, Error>[src]

Trait Implementations

impl Debug for Watcher[src]

Auto Trait Implementations

impl !RefUnwindSafe for Watcher

impl Send for Watcher

impl Sync for Watcher

impl Unpin for Watcher

impl !UnwindSafe for Watcher

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.