[−][src]Struct async_fsw::Watcher
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
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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,