pub struct SessionRpcModel<'a> { /* private fields */ }Expand description
session.model.* RPCs.
Implementations§
Source§impl<'a> SessionRpcModel<'a>
impl<'a> SessionRpcModel<'a>
Sourcepub async fn get_current(&self) -> Result<CurrentModel, Error>
pub async fn get_current(&self) -> Result<CurrentModel, Error>
Wire method: session.model.getCurrent.
Sourcepub async fn switch_to(
&self,
params: ModelSwitchToRequest,
) -> Result<ModelSwitchToResult, Error>
pub async fn switch_to( &self, params: ModelSwitchToRequest, ) -> Result<ModelSwitchToResult, Error>
Wire method: session.model.switchTo.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcModel<'a>
impl<'a> Clone for SessionRpcModel<'a>
Source§fn clone(&self) -> SessionRpcModel<'a>
fn clone(&self) -> SessionRpcModel<'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 SessionRpcModel<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcModel<'a>
impl<'a> !RefUnwindSafe for SessionRpcModel<'a>
impl<'a> Send for SessionRpcModel<'a>
impl<'a> Sync for SessionRpcModel<'a>
impl<'a> Unpin for SessionRpcModel<'a>
impl<'a> UnsafeUnpin for SessionRpcModel<'a>
impl<'a> !UnwindSafe for SessionRpcModel<'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