pub struct FileTreeApplyReport {
pub deltas: Vec<FileTreeStoreDelta>,
pub watch_events: Vec<WatchEvent>,
pub watch_errors: Vec<FileError>,
pub watch_configuration: Vec<(FileUri, bool, Result<(), FileError>)>,
pub stale_responses: usize,
pub mutation_errors: Vec<(FileTreeMutationRequest, FileError)>,
pub remaining: bool,
}Expand description
Store effects and provider-side events produced by one applied drain.
Empty vectors mean that category produced no result. Mutation/provider watch
failures are collected instead of aborting the remaining batch; store
invariant failures are returned directly from drain_into_store.
§Examples
use ailloli_ui_fs_runtime::FileTreeApplyReport;
let report = FileTreeApplyReport::default();
assert!(report.deltas.is_empty());
assert_eq!(report.stale_responses, 0);
assert!(!report.remaining);Fields§
§deltas: Vec<FileTreeStoreDelta>Ordered UI-store deltas successfully applied in this batch.
watch_events: Vec<WatchEvent>Successfully received watch events, not yet interpreted by the caller.
watch_errors: Vec<FileError>Provider watch-poll errors collected without aborting the batch.
watch_configuration: Vec<(FileUri, bool, Result<(), FileError>)>Ordered (uri, enabled, result) watch-configuration acknowledgements.
stale_responses: usizeDirectory responses rejected because their store generation was stale.
mutation_errors: Vec<(FileTreeMutationRequest, FileError)>Mutation requests and provider errors that prevented store attestation.
remaining: boolWhether additional inbox responses await a later bounded drain.
Trait Implementations§
Source§impl Debug for FileTreeApplyReport
impl Debug for FileTreeApplyReport
Source§impl Default for FileTreeApplyReport
impl Default for FileTreeApplyReport
Source§fn default() -> FileTreeApplyReport
fn default() -> FileTreeApplyReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileTreeApplyReport
impl RefUnwindSafe for FileTreeApplyReport
impl Send for FileTreeApplyReport
impl Sync for FileTreeApplyReport
impl Unpin for FileTreeApplyReport
impl UnwindSafe for FileTreeApplyReport
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