pub trait DevicePathWatchable: DevicePath {
// Required methods
fn any_added(ctx: &Watcher) -> WatchResult<DevicePathStream<NoParent, Self>>;
fn any_changed(
ctx: &Watcher,
) -> WatchResult<DevicePathStream<NoParent, Self>>;
fn any_removed(
ctx: &Watcher,
) -> WatchResult<DevicePathStream<NoParent, Self>>;
fn added(&self, ctx: &Watcher) -> WatchResult<DevicePathStream<Self, Self>>;
fn changed(
&self,
ctx: &Watcher,
) -> WatchResult<DevicePathStream<Self, Self>>;
fn removed(
&self,
ctx: &Watcher,
) -> WatchResult<DevicePathStream<Self, Self>>;
}Expand description
A DevicePath that can be watched for add/change/remove events.
Required Methods§
Sourcefn any_added(ctx: &Watcher) -> WatchResult<DevicePathStream<NoParent, Self>>
fn any_added(ctx: &Watcher) -> WatchResult<DevicePathStream<NoParent, Self>>
Returns a stream of all DevicePaths of this type that are added.
Sourcefn any_changed(ctx: &Watcher) -> WatchResult<DevicePathStream<NoParent, Self>>
fn any_changed(ctx: &Watcher) -> WatchResult<DevicePathStream<NoParent, Self>>
Returns a stream of all DevicePaths of this type that are changed.
Sourcefn any_removed(ctx: &Watcher) -> WatchResult<DevicePathStream<NoParent, Self>>
fn any_removed(ctx: &Watcher) -> WatchResult<DevicePathStream<NoParent, Self>>
Returns a stream of all DevicePaths of this type that are removed.
Sourcefn added(&self, ctx: &Watcher) -> WatchResult<DevicePathStream<Self, Self>>
fn added(&self, ctx: &Watcher) -> WatchResult<DevicePathStream<Self, Self>>
Returns a stream containing only this DevicePath whenever it’s
added.
Sourcefn changed(&self, ctx: &Watcher) -> WatchResult<DevicePathStream<Self, Self>>
fn changed(&self, ctx: &Watcher) -> WatchResult<DevicePathStream<Self, Self>>
Returns a stream containing only this DevicePath whenever it’s
changed.
Sourcefn removed(&self, ctx: &Watcher) -> WatchResult<DevicePathStream<Self, Self>>
fn removed(&self, ctx: &Watcher) -> WatchResult<DevicePathStream<Self, Self>>
Returns a stream containing only this DevicePath whenever it’s
removed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.