pub struct BufferWillSave {
pub buffer_id: u64,
pub path: String,
}Expand description
A buffer is about to be saved to disk.
Emitted before buffer content is persisted. Subscribers can modify the buffer content (e.g., format-on-save) and the write command will pick up the formatted content. Dispatch is synchronous.
Fields§
§buffer_id: u64ID of the buffer about to be saved
path: StringPath the buffer will be saved to
Trait Implementations§
Source§impl Clone for BufferWillSave
impl Clone for BufferWillSave
Source§fn clone(&self) -> BufferWillSave
fn clone(&self) -> BufferWillSave
Returns a duplicate 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 BufferWillSave
impl Debug for BufferWillSave
Source§impl Event for BufferWillSave
impl Event for BufferWillSave
Source§impl PartialEq for BufferWillSave
impl PartialEq for BufferWillSave
impl Eq for BufferWillSave
impl StructuralPartialEq for BufferWillSave
Auto Trait Implementations§
impl Freeze for BufferWillSave
impl RefUnwindSafe for BufferWillSave
impl Send for BufferWillSave
impl Sync for BufferWillSave
impl Unpin for BufferWillSave
impl UnsafeUnpin for BufferWillSave
impl UnwindSafe for BufferWillSave
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