pub struct SaveRequest {
pub version: u32,
}Expand description
The reader pressed the save shortcut: Command S on macOS, Control S elsewhere.
Writing the file is this side’s job, on a worker, never on the thread the editor runs on.
Fields§
§version: u32The version of the document the reader saw when they pressed it.
Trait Implementations§
Source§impl Clone for SaveRequest
impl Clone for SaveRequest
impl Copy for SaveRequest
Source§impl Debug for SaveRequest
impl Debug for SaveRequest
impl Eq for SaveRequest
Source§impl PartialEq for SaveRequest
impl PartialEq for SaveRequest
impl StructuralPartialEq for SaveRequest
Auto Trait Implementations§
impl Freeze for SaveRequest
impl RefUnwindSafe for SaveRequest
impl Send for SaveRequest
impl Sync for SaveRequest
impl Unpin for SaveRequest
impl UnsafeUnpin for SaveRequest
impl UnwindSafe for SaveRequest
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