pub struct ResourceWatchState {
pub root: Uri,
pub recursive: bool,
pub excludes: Option<AnyValue>,
pub includes: Option<AnyValue>,
}Expand description
Full state for a single resource watch, returned when a client subscribes
to an ahp-resource-watch: URI.
Watches are otherwise stateless: the watcher exists to deliver {@link ResourceWatchChangedAction} events. The state carries only the descriptor of what is being watched so a re-subscribing client can recover the watch configuration after reconnecting.
Fields§
§root: UriThe URI being watched. For recursive watches this is the root of the subtree; for non-recursive watches this is the single file or directory.
recursive: booltrue if the watcher reports changes for descendants of root;
false if it only reports changes to root itself (and, when
root is a directory, its direct children).
excludes: Option<AnyValue>Optional glob patterns or paths relative to root to exclude from
change reporting.
includes: Option<AnyValue>Optional glob patterns or paths relative to root to restrict
change reporting to. Omit to report every change under root
subject to excludes.
Trait Implementations§
Source§impl Clone for ResourceWatchState
impl Clone for ResourceWatchState
Source§fn clone(&self) -> ResourceWatchState
fn clone(&self) -> ResourceWatchState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more