pub struct SshWatcher { /* private fields */ }Implementations§
Source§impl SshWatcher
impl SshWatcher
pub fn connect( target: WatchTarget, options: &WatchOptions, ) -> Result<Self, WatchError>
Trait Implementations§
Source§impl PathWatcher for SshWatcher
impl PathWatcher for SshWatcher
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 SshWatcher
impl !RefUnwindSafe for SshWatcher
impl Send for SshWatcher
impl Sync for SshWatcher
impl Unpin for SshWatcher
impl UnsafeUnpin for SshWatcher
impl !UnwindSafe for SshWatcher
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