pub struct ExecServerClient { /* private fields */ }Implementations§
Source§impl ExecServerClient
impl ExecServerClient
Sourcepub async fn http_request(
&self,
params: HttpRequestParams,
) -> Result<HttpRequestResponse, ExecServerError>
pub async fn http_request( &self, params: HttpRequestParams, ) -> Result<HttpRequestResponse, ExecServerError>
Performs an HTTP request and buffers the response body.
Sourcepub async fn http_request_stream(
&self,
params: HttpRequestParams,
) -> Result<(HttpRequestResponse, HttpResponseBodyStream), ExecServerError>
pub async fn http_request_stream( &self, params: HttpRequestParams, ) -> Result<(HttpRequestResponse, HttpResponseBodyStream), ExecServerError>
Performs an HTTP request and returns a body stream.
The method sets stream_response and replaces any caller-supplied
request_id with a connection-local id, so late deltas from abandoned
streams cannot be confused with later requests.
Source§impl ExecServerClient
impl ExecServerClient
pub async fn exec( &self, params: ExecParams, ) -> Result<ExecResponse, ExecServerError>
pub async fn environment_info(&self) -> Result<EnvironmentInfo, ExecServerError>
pub async fn environment_status( &self, ) -> Result<EnvironmentStatus, ExecServerError>
pub async fn discover_capability_roots( &self, params: CapabilityRootsDiscoverParams, ) -> Result<CapabilityRootsDiscoverResponse, ExecServerError>
pub async fn read( &self, params: ReadParams, ) -> Result<ReadResponse, ExecServerError>
pub async fn write( &self, process_id: &ProcessId, chunk: Vec<u8>, write_id: String, ) -> Result<WriteResponse, ExecServerError>
pub async fn signal( &self, process_id: &ProcessId, signal: ProcessSignal, ) -> Result<(), ExecServerError>
pub async fn terminate( &self, process_id: &ProcessId, ) -> Result<TerminateResponse, ExecServerError>
pub async fn fs_read_file( &self, params: FsReadFileParams, ) -> Result<FsReadFileResponse, ExecServerError>
pub async fn fs_open( &self, params: FsOpenParams, ) -> Result<FsOpenResponse, ExecServerError>
pub async fn fs_read_block( &self, params: FsReadBlockParams, ) -> Result<FsReadBlockResponse, ExecServerError>
pub async fn fs_close( &self, params: FsCloseParams, ) -> Result<FsCloseResponse, ExecServerError>
pub async fn fs_write_file( &self, params: FsWriteFileParams, ) -> Result<FsWriteFileResponse, ExecServerError>
pub async fn fs_create_directory( &self, params: FsCreateDirectoryParams, ) -> Result<FsCreateDirectoryResponse, ExecServerError>
pub async fn fs_get_metadata( &self, params: FsGetMetadataParams, ) -> Result<FsGetMetadataResponse, ExecServerError>
pub async fn fs_canonicalize( &self, params: FsCanonicalizeParams, ) -> Result<FsCanonicalizeResponse, ExecServerError>
pub async fn fs_read_directory( &self, params: FsReadDirectoryParams, ) -> Result<FsReadDirectoryResponse, ExecServerError>
pub async fn fs_walk( &self, params: FsWalkParams, ) -> Result<FsWalkResponse, ExecServerError>
pub async fn fs_remove( &self, params: FsRemoveParams, ) -> Result<FsRemoveResponse, ExecServerError>
pub async fn fs_copy( &self, params: FsCopyParams, ) -> Result<FsCopyResponse, ExecServerError>
pub fn session_id(&self) -> Option<String>
Source§impl ExecServerClient
impl ExecServerClient
pub async fn connect_websocket( args: RemoteExecServerConnectArgs, ) -> Result<Self, ExecServerError>
Sourcepub async fn connect_noise_rendezvous(
args: NoiseRendezvousConnectArgs,
) -> Result<Self, ExecServerError>
pub async fn connect_noise_rendezvous( args: NoiseRendezvousConnectArgs, ) -> Result<Self, ExecServerError>
Connect to one exec-server through an authenticated rendezvous stream using a caller-supplied single-use authorization bundle.
The executor key is pinned before JSON-RPC starts; the websocket carries
only ciphertext after that. Environment-managed connections use a
retained NoiseRendezvousConnectProvider so recovery can fetch a fresh
bundle for each reconnect.
Trait Implementations§
Source§impl Clone for ExecServerClient
impl Clone for ExecServerClient
Source§fn clone(&self) -> ExecServerClient
fn clone(&self) -> ExecServerClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl HttpClient for ExecServerClient
impl HttpClient for ExecServerClient
Source§fn http_request(
&self,
params: HttpRequestParams,
) -> BoxFuture<'_, Result<HttpRequestResponse, ExecServerError>>
fn http_request( &self, params: HttpRequestParams, ) -> BoxFuture<'_, Result<HttpRequestResponse, ExecServerError>>
Orchestrator-side adapter that forwards buffered HTTP requests to the remote runtime over the shared JSON-RPC connection.
Source§fn http_request_stream(
&self,
params: HttpRequestParams,
) -> BoxFuture<'_, Result<(HttpRequestResponse, HttpResponseBodyStream), ExecServerError>>
fn http_request_stream( &self, params: HttpRequestParams, ) -> BoxFuture<'_, Result<(HttpRequestResponse, HttpResponseBodyStream), ExecServerError>>
Orchestrator-side adapter that forwards streamed HTTP requests to the remote runtime and exposes body deltas as a byte stream.
Auto Trait Implementations§
impl !RefUnwindSafe for ExecServerClient
impl !UnwindSafe for ExecServerClient
impl Freeze for ExecServerClient
impl Send for ExecServerClient
impl Sync for ExecServerClient
impl Unpin for ExecServerClient
impl UnsafeUnpin for ExecServerClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request