pub struct SessionRpcOptions<'a> { /* private fields */ }Expand description
session.options.* RPCs.
Implementations§
Source§impl<'a> SessionRpcOptions<'a>
impl<'a> SessionRpcOptions<'a>
Sourcepub async fn update(
&self,
params: SessionUpdateOptionsParams,
) -> Result<SessionUpdateOptionsResult, Error>
pub async fn update( &self, params: SessionUpdateOptionsParams, ) -> Result<SessionUpdateOptionsResult, Error>
Patches the genuinely-mutable subset of session options.
Wire method: session.options.update.
§Parameters
params- Patch of mutable session options to apply to the running session.
§Returns
Indicates whether the session options patch was applied successfully.
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 SessionRpcOptions<'a>
impl<'a> Clone for SessionRpcOptions<'a>
Source§fn clone(&self) -> SessionRpcOptions<'a>
fn clone(&self) -> SessionRpcOptions<'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 SessionRpcOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcOptions<'a>
impl<'a> !RefUnwindSafe for SessionRpcOptions<'a>
impl<'a> Send for SessionRpcOptions<'a>
impl<'a> Sync for SessionRpcOptions<'a>
impl<'a> Unpin for SessionRpcOptions<'a>
impl<'a> UnsafeUnpin for SessionRpcOptions<'a>
impl<'a> !UnwindSafe for SessionRpcOptions<'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