pub struct SessionRpcHistory<'a> { /* private fields */ }Expand description
session.history.* RPCs.
Implementations§
Source§impl<'a> SessionRpcHistory<'a>
impl<'a> SessionRpcHistory<'a>
Sourcepub async fn compact(&self) -> Result<HistoryCompactResult, Error>
pub async fn compact(&self) -> Result<HistoryCompactResult, Error>
Wire method: session.history.compact.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn truncate(
&self,
params: HistoryTruncateRequest,
) -> Result<HistoryTruncateResult, Error>
pub async fn truncate( &self, params: HistoryTruncateRequest, ) -> Result<HistoryTruncateResult, Error>
Wire method: session.history.truncate.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcHistory<'a>
impl<'a> Clone for SessionRpcHistory<'a>
Source§fn clone(&self) -> SessionRpcHistory<'a>
fn clone(&self) -> SessionRpcHistory<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SessionRpcHistory<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcHistory<'a>
impl<'a> !RefUnwindSafe for SessionRpcHistory<'a>
impl<'a> Send for SessionRpcHistory<'a>
impl<'a> Sync for SessionRpcHistory<'a>
impl<'a> Unpin for SessionRpcHistory<'a>
impl<'a> UnsafeUnpin for SessionRpcHistory<'a>
impl<'a> !UnwindSafe for SessionRpcHistory<'a>
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