pub struct State {
pub failed_watches: Vec<WatchData>,
pub has_socket: bool,
pub rx: UnboundedReceiver<SocketMessage>,
/* private fields */
}Fields§
§failed_watches: Vec<WatchData>§has_socket: bool§rx: UnboundedReceiver<SocketMessage>Implementations§
Source§impl State
impl State
pub fn new(inotify: &mut Inotify, config: Config) -> Self
pub fn reload_watches(&mut self)
pub fn recover_watches(&mut self)
pub fn get_watch(&self, wd: &WatchDescriptor) -> Option<&WatchData>
pub fn remove_watch(&mut self, wd: &WatchDescriptor) -> Option<WatchData>
Auto Trait Implementations§
impl Freeze for State
impl !RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl !UnwindSafe for State
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