pub struct DocApiHistory<'a, I: Invoker> { /* private fields */ }Implementations§
Source§impl<'a, I: Invoker> DocApiHistory<'a, I>
impl<'a, I: Invoker> DocApiHistory<'a, I>
pub fn new(invoker: &'a I) -> Self
Sourcepub fn get<'call>(
&'call self,
params: &'call DocHistoryGetBoundParams,
) -> impl Future<Output = Result<DocHistoryGetResult>> + Send + 'call
pub fn get<'call>( &'call self, params: &'call DocHistoryGetBoundParams, ) -> impl Future<Output = Result<DocHistoryGetResult>> + Send + 'call
Query the current undo/redo history state of the document.
Sourcepub async fn get_with_options(
&self,
params: &DocHistoryGetBoundParams,
options: InvokeOptions,
) -> Result<DocHistoryGetResult>
pub async fn get_with_options( &self, params: &DocHistoryGetBoundParams, options: InvokeOptions, ) -> Result<DocHistoryGetResult>
Query the current undo/redo history state of the document.
Sourcepub fn redo<'call>(
&'call self,
params: &'call DocHistoryRedoBoundParams,
) -> impl Future<Output = Result<DocHistoryRedoResult>> + Send + 'call
pub fn redo<'call>( &'call self, params: &'call DocHistoryRedoBoundParams, ) -> impl Future<Output = Result<DocHistoryRedoResult>> + Send + 'call
Redo the most recently undone action in the document.
Sourcepub async fn redo_with_options(
&self,
params: &DocHistoryRedoBoundParams,
options: InvokeOptions,
) -> Result<DocHistoryRedoResult>
pub async fn redo_with_options( &self, params: &DocHistoryRedoBoundParams, options: InvokeOptions, ) -> Result<DocHistoryRedoResult>
Redo the most recently undone action in the document.
Sourcepub fn undo<'call>(
&'call self,
params: &'call DocHistoryUndoBoundParams,
) -> impl Future<Output = Result<DocHistoryUndoResult>> + Send + 'call
pub fn undo<'call>( &'call self, params: &'call DocHistoryUndoBoundParams, ) -> impl Future<Output = Result<DocHistoryUndoResult>> + Send + 'call
Undo the most recent history-safe mutation in the document.
Sourcepub async fn undo_with_options(
&self,
params: &DocHistoryUndoBoundParams,
options: InvokeOptions,
) -> Result<DocHistoryUndoResult>
pub async fn undo_with_options( &self, params: &DocHistoryUndoBoundParams, options: InvokeOptions, ) -> Result<DocHistoryUndoResult>
Undo the most recent history-safe mutation in the document.
Auto Trait Implementations§
impl<'a, I> Freeze for DocApiHistory<'a, I>
impl<'a, I> RefUnwindSafe for DocApiHistory<'a, I>where
&'a I: RefUnwindSafe,
impl<'a, I> Send for DocApiHistory<'a, I>
impl<'a, I> Sync for DocApiHistory<'a, I>
impl<'a, I> Unpin for DocApiHistory<'a, I>
impl<'a, I> UnsafeUnpin for DocApiHistory<'a, I>where
&'a I: UnsafeUnpin,
impl<'a, I> UnwindSafe for DocApiHistory<'a, I>where
&'a I: UnwindSafe,
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