pub struct FileTreeMutationEnqueue {
pub outcome: FileTreeEnqueueOutcome,
pub pending_delta: FileTreeStoreDelta,
}Expand description
Immediate UI-side effects of accepting or coalescing a mutation.
§Examples
use ailloli_ui_fs_runtime::{FileTreeEnqueueOutcome, FileTreeMutationEnqueue};
fn inspect(result: &FileTreeMutationEnqueue) {
assert!(matches!(result.outcome, FileTreeEnqueueOutcome::Enqueued | FileTreeEnqueueOutcome::Coalesced));
}Fields§
§outcome: FileTreeEnqueueOutcomeWhether new worker work was queued or an identical mutation coalesced.
pending_delta: FileTreeStoreDeltaStore delta that pins the target as having a pending operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileTreeMutationEnqueue
impl RefUnwindSafe for FileTreeMutationEnqueue
impl Send for FileTreeMutationEnqueue
impl Sync for FileTreeMutationEnqueue
impl Unpin for FileTreeMutationEnqueue
impl UnwindSafe for FileTreeMutationEnqueue
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