pub struct DirectoryWatcher;Expand description
The type corresponding to the DirectoryWatcher protocol.
DirectoryWatcher transmits messages from a filesystem server
about events happening in the filesystem. Clients can register
new watchers using the Directory.Watch method, where they can
filter which events they want to receive notifications for.
The DirectoryWatcher will send messages of the form:
struct {
uint8 event;
uint8 len;
char name[];
};Where names are NOT null-terminated. The name is the relative
path to the entry the event is refering to. It will be empty if
the event isn’t referencing a particular entry (e.g. for the
IDLE event).
Trait Implementations§
Source§impl ClientCompatFrom<DirectoryWatcherProxy> for DirectoryWatcher
impl ClientCompatFrom<DirectoryWatcherProxy> for DirectoryWatcher
Source§fn client_compat_from(
proxy: DirectoryWatcherProxy,
) -> ClientDispatcher<DirectoryWatcher, Channel>
fn client_compat_from( proxy: DirectoryWatcherProxy, ) -> ClientDispatcher<DirectoryWatcher, Channel>
Converts
proxy into a Client for this protocol.Source§impl CompatFrom<DirectoryWatcherMarker> for DirectoryWatcher
impl CompatFrom<DirectoryWatcherMarker> for DirectoryWatcher
Source§fn compat_from(_: DirectoryWatcherMarker) -> DirectoryWatcher
fn compat_from(_: DirectoryWatcherMarker) -> DirectoryWatcher
Converts
value into a value of this type.Source§impl Debug for DirectoryWatcher
impl Debug for DirectoryWatcher
Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for DirectoryWatcherwhere
___H: DirectoryWatcherClientHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for DirectoryWatcherwhere
___H: DirectoryWatcherClientHandler<___T> + Send,
___T: Transport,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for DirectoryWatcherwhere
___H: DirectoryWatcherServerHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for DirectoryWatcherwhere
___H: DirectoryWatcherServerHandler<___T> + Send,
___T: Transport,
Source§impl<___T> HasConnectionHandles<___T> for DirectoryWatcherwhere
___T: Transport,
impl<___T> HasConnectionHandles<___T> for DirectoryWatcherwhere
___T: Transport,
Source§impl HasTransport for DirectoryWatcher
impl HasTransport for DirectoryWatcher
Source§impl PartialEq for DirectoryWatcher
impl PartialEq for DirectoryWatcher
impl StructuralPartialEq for DirectoryWatcher
Auto Trait Implementations§
impl Freeze for DirectoryWatcher
impl RefUnwindSafe for DirectoryWatcher
impl Send for DirectoryWatcher
impl Sync for DirectoryWatcher
impl Unpin for DirectoryWatcher
impl UnwindSafe for DirectoryWatcher
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]