pub struct FsChangedNotification {
pub changed_paths: Vec<AbsolutePathBuf>,
pub watch_id: String,
}Expand description
Filesystem watch notification emitted for fs/watch subscribers.
JSON schema
{
"title": "FsChangedNotification",
"description": "Filesystem watch notification emitted for `fs/watch` subscribers.",
"type": "object",
"required": [
"changedPaths",
"watchId"
],
"properties": {
"changedPaths": {
"description": "File or directory paths associated with this event.",
"type": "array",
"items": {
"$ref": "#/definitions/AbsolutePathBuf"
}
},
"watchId": {
"description": "Watch identifier previously provided to `fs/watch`.",
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Fields§
§changed_paths: Vec<AbsolutePathBuf>File or directory paths associated with this event.
watch_id: StringWatch identifier previously provided to fs/watch.
Trait Implementations§
Source§impl Clone for FsChangedNotification
impl Clone for FsChangedNotification
Source§fn clone(&self) -> FsChangedNotification
fn clone(&self) -> FsChangedNotification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FsChangedNotification
impl Debug for FsChangedNotification
Source§impl<'de> Deserialize<'de> for FsChangedNotification
impl<'de> Deserialize<'de> for FsChangedNotification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<FsChangedNotification> for ServerNotification
impl From<FsChangedNotification> for ServerNotification
Source§fn from(value: FsChangedNotification) -> Self
fn from(value: FsChangedNotification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FsChangedNotification
impl RefUnwindSafe for FsChangedNotification
impl Send for FsChangedNotification
impl Sync for FsChangedNotification
impl Unpin for FsChangedNotification
impl UnsafeUnpin for FsChangedNotification
impl UnwindSafe for FsChangedNotification
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