pub struct HttpWatcher { /* private fields */ }Implementations§
Source§impl HttpWatcher
impl HttpWatcher
pub fn connect( target: &WatchTarget, options: &WatchOptions, ) -> Result<Self, WatchError>
Trait Implementations§
Source§impl PathWatcher for HttpWatcher
impl PathWatcher for HttpWatcher
fn poll(&mut self) -> Result<Vec<WatchEvent>, WatchError>
fn read(&mut self, path: &str) -> Result<Vec<u8>, WatchError>
fn has_pending(&self) -> bool
fn connection_state(&self) -> ConnectionState
Auto Trait Implementations§
impl Freeze for HttpWatcher
impl !RefUnwindSafe for HttpWatcher
impl Send for HttpWatcher
impl Sync for HttpWatcher
impl Unpin for HttpWatcher
impl UnsafeUnpin for HttpWatcher
impl !UnwindSafe for HttpWatcher
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