pub struct WatchedSet {
pub watch_root: PathBuf,
/* private fields */
}Expand description
The watched set of one generated project (F-7b R2): the component manifest and the component sources, nothing else.
The watcher registers on the component/ directory recursively — a
single-file watch on gleam.toml would break under editors’ atomic
rename-replace saves — and THIS classification is what keeps the set
honest: component/build/** (where gleam build writes) and every
other non-input path classify Classification::Irrelevant, which is
also what prevents the dev loop from rebuilding on its own build
outputs. The generated template files (host code, build.rs,
manifests) are structurally outside component/ and therefore outside
the watch — the tear’s regeneration-seam exclusion.
Fields§
§watch_root: PathBuf<root>/component — what the watcher registers, recursively.
Implementations§
Source§impl WatchedSet
impl WatchedSet
Sourcepub fn of_project(root: &Path) -> Self
pub fn of_project(root: &Path) -> Self
The watched set for the generated project at root.
Sourcepub fn classify(&self, event: &Event) -> Classification
pub fn classify(&self, event: &Event) -> Classification
Classifies one backend event. Pure: the single filesystem question
a Classification::RootAffected answer requires is asked by the
loop, in response to the event, exactly once.
Trait Implementations§
Source§impl Clone for WatchedSet
impl Clone for WatchedSet
Source§fn clone(&self) -> WatchedSet
fn clone(&self) -> WatchedSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for WatchedSet
impl RefUnwindSafe for WatchedSet
impl Send for WatchedSet
impl Sync for WatchedSet
impl Unpin for WatchedSet
impl UnsafeUnpin for WatchedSet
impl UnwindSafe for WatchedSet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request