pub struct FileTreeMutationRequest { /* private fields */ }Expand description
Worker mutation envelope with a monotonically allocated request ID.
IDs start at one per runtime and never use zero. Values are observable in mutation responses but cannot be constructed directly by consumers.
§Examples
use ailloli_ui_fs_runtime::FileTreeMutationRequest;
fn inspect(request: &FileTreeMutationRequest) {
assert!(request.request_id() > 0);
}Implementations§
Source§impl FileTreeMutationRequest
Read-only access to a worker mutation envelope.
impl FileTreeMutationRequest
Read-only access to a worker mutation envelope.
Sourcepub const fn request_id(&self) -> u64
pub const fn request_id(&self) -> u64
Returns the runtime-local nonzero request sequence.
§Examples
use ailloli_ui_fs_runtime::FileTreeMutationRequest;
fn inspect(request: &FileTreeMutationRequest) {
let id: u64 = request.request_id();
assert_ne!(id, 0);
}Sourcepub const fn mutation(&self) -> &FileTreeMutation
pub const fn mutation(&self) -> &FileTreeMutation
Borrows the exact submitted mutation.
§Examples
use ailloli_ui_fs_runtime::{FileTreeMutation, FileTreeMutationRequest};
fn inspect(request: &FileTreeMutationRequest) {
let _: &FileTreeMutation = request.mutation();
}Trait Implementations§
Source§impl Clone for FileTreeMutationRequest
impl Clone for FileTreeMutationRequest
Source§fn clone(&self) -> FileTreeMutationRequest
fn clone(&self) -> FileTreeMutationRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTreeMutationRequest
impl Debug for FileTreeMutationRequest
Source§impl PartialEq for FileTreeMutationRequest
impl PartialEq for FileTreeMutationRequest
impl Eq for FileTreeMutationRequest
impl StructuralPartialEq for FileTreeMutationRequest
Auto Trait Implementations§
impl Freeze for FileTreeMutationRequest
impl RefUnwindSafe for FileTreeMutationRequest
impl Send for FileTreeMutationRequest
impl Sync for FileTreeMutationRequest
impl Unpin for FileTreeMutationRequest
impl UnwindSafe for FileTreeMutationRequest
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.