pub struct SessionRpcRemote<'a> { /* private fields */ }Expand description
session.remote.* RPCs.
Implementations§
Source§impl<'a> SessionRpcRemote<'a>
impl<'a> SessionRpcRemote<'a>
Sourcepub async fn enable(
&self,
params: RemoteEnableRequest,
) -> Result<RemoteEnableResult, Error>
pub async fn enable( &self, params: RemoteEnableRequest, ) -> Result<RemoteEnableResult, Error>
Enables remote session export or steering.
Wire method: session.remote.enable.
§Parameters
params- Optional remote session mode (“off”, “export”, or “on”); defaults to enabling both export and remote steering.
§Returns
GitHub URL for the session and a flag indicating whether remote steering is enabled.
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 disable(&self) -> Result<(), Error>
pub async fn disable(&self) -> Result<(), Error>
Disables remote session export and steering.
Wire method: session.remote.disable.
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 notify_steerable_changed(
&self,
params: RemoteNotifySteerableChangedRequest,
) -> Result<RemoteNotifySteerableChangedResult, Error>
pub async fn notify_steerable_changed( &self, params: RemoteNotifySteerableChangedRequest, ) -> Result<RemoteNotifySteerableChangedResult, Error>
Persists a remote-steerability change emitted by the host as a session event.
Wire method: session.remote.notifySteerableChanged.
§Parameters
params- New remote-steerability state to persist as asession.remote_steerable_changedevent.
§Returns
Persist a steerability change as a session.remote_steerable_changed event. Used by the host (CLI / SDK consumer) when it has just finished enabling or disabling steering on a remote exporter that the runtime does not directly own.
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 SessionRpcRemote<'a>
impl<'a> Clone for SessionRpcRemote<'a>
Source§fn clone(&self) -> SessionRpcRemote<'a>
fn clone(&self) -> SessionRpcRemote<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more