pub struct AssetChangeEvent {
pub kind: AssetChangeKind,
pub rel_path: String,
pub uuid: AssetUUID,
}Expand description
One filesystem change against an asset under the watched root.
Fields§
§kind: AssetChangeKindWhat happened.
rel_path: StringPath relative to the watched assets root, forward-slash separated for cross-platform UUID stability.
uuid: AssetUUIDUUID derived from rel_path via [AssetUUID::new_v5]. May not yet
(or no longer) exist in the crate::vfs::VirtualFileSystem — the
consumer reconciles by reindex + invalidate as appropriate.
Trait Implementations§
Source§impl Clone for AssetChangeEvent
impl Clone for AssetChangeEvent
Source§fn clone(&self) -> AssetChangeEvent
fn clone(&self) -> AssetChangeEvent
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 moreAuto Trait Implementations§
impl Freeze for AssetChangeEvent
impl RefUnwindSafe for AssetChangeEvent
impl Send for AssetChangeEvent
impl Sync for AssetChangeEvent
impl Unpin for AssetChangeEvent
impl UnsafeUnpin for AssetChangeEvent
impl UnwindSafe for AssetChangeEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more