pub struct LlbBridgeClient<T> { /* private fields */ }Implementations§
Source§impl<T> LlbBridgeClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
impl<T> LlbBridgeClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
pub fn new(inner: T) -> LlbBridgeClient<T>
pub fn with_origin(inner: T, origin: Uri) -> LlbBridgeClient<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> LlbBridgeClient<InterceptedService<T, F>>where
F: Interceptor,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Default,
T: Service<Request<UnsyncBoxBody<Bytes, Status>>, Response = Response<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody>>,
<T as Service<Request<UnsyncBoxBody<Bytes, Status>>>>::Error: Into<Box<dyn Error + Send + Sync>> + Send + Sync,
Sourcepub fn send_compressed(
self,
encoding: CompressionEncoding,
) -> LlbBridgeClient<T>
pub fn send_compressed( self, encoding: CompressionEncoding, ) -> LlbBridgeClient<T>
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(
self,
encoding: CompressionEncoding,
) -> LlbBridgeClient<T>
pub fn accept_compressed( self, encoding: CompressionEncoding, ) -> LlbBridgeClient<T>
Enable decompressing responses.
Sourcepub async fn resolve_image_config(
&mut self,
request: impl IntoRequest<ResolveImageConfigRequest>,
) -> Result<Response<ResolveImageConfigResponse>, Status>
pub async fn resolve_image_config( &mut self, request: impl IntoRequest<ResolveImageConfigRequest>, ) -> Result<Response<ResolveImageConfigResponse>, Status>
apicaps:CapResolveImage
Sourcepub async fn solve(
&mut self,
request: impl IntoRequest<SolveRequest>,
) -> Result<Response<SolveResponse>, Status>
pub async fn solve( &mut self, request: impl IntoRequest<SolveRequest>, ) -> Result<Response<SolveResponse>, Status>
apicaps:CapSolveBase
Sourcepub async fn read_file(
&mut self,
request: impl IntoRequest<ReadFileRequest>,
) -> Result<Response<ReadFileResponse>, Status>
pub async fn read_file( &mut self, request: impl IntoRequest<ReadFileRequest>, ) -> Result<Response<ReadFileResponse>, Status>
apicaps:CapReadFile
Sourcepub async fn read_dir(
&mut self,
request: impl IntoRequest<ReadDirRequest>,
) -> Result<Response<ReadDirResponse>, Status>
pub async fn read_dir( &mut self, request: impl IntoRequest<ReadDirRequest>, ) -> Result<Response<ReadDirResponse>, Status>
apicaps:CapReadDir
Sourcepub async fn stat_file(
&mut self,
request: impl IntoRequest<StatFileRequest>,
) -> Result<Response<StatFileResponse>, Status>
pub async fn stat_file( &mut self, request: impl IntoRequest<StatFileRequest>, ) -> Result<Response<StatFileResponse>, Status>
apicaps:CapStatFile
Sourcepub async fn evaluate(
&mut self,
request: impl IntoRequest<EvaluateRequest>,
) -> Result<Response<EvaluateResponse>, Status>
pub async fn evaluate( &mut self, request: impl IntoRequest<EvaluateRequest>, ) -> Result<Response<EvaluateResponse>, Status>
apicaps:CapGatewayEvaluate
pub async fn ping( &mut self, request: impl IntoRequest<PingRequest>, ) -> Result<Response<PongResponse>, Status>
pub async fn return( &mut self, request: impl IntoRequest<ReturnRequest>, ) -> Result<Response<ReturnResponse>, Status>
Sourcepub async fn inputs(
&mut self,
request: impl IntoRequest<InputsRequest>,
) -> Result<Response<InputsResponse>, Status>
pub async fn inputs( &mut self, request: impl IntoRequest<InputsRequest>, ) -> Result<Response<InputsResponse>, Status>
apicaps:CapFrontendInputs
pub async fn new_container( &mut self, request: impl IntoRequest<NewContainerRequest>, ) -> Result<Response<NewContainerResponse>, Status>
pub async fn release_container( &mut self, request: impl IntoRequest<ReleaseContainerRequest>, ) -> Result<Response<ReleaseContainerResponse>, Status>
pub async fn exec_process( &mut self, request: impl IntoStreamingRequest<Message = ExecMessage>, ) -> Result<Response<Streaming<ExecMessage>>, Status>
Sourcepub async fn warn(
&mut self,
request: impl IntoRequest<WarnRequest>,
) -> Result<Response<WarnResponse>, Status>
pub async fn warn( &mut self, request: impl IntoRequest<WarnRequest>, ) -> Result<Response<WarnResponse>, Status>
apicaps:CapGatewayWarnings
Trait Implementations§
Source§impl<T> Clone for LlbBridgeClient<T>where
T: Clone,
impl<T> Clone for LlbBridgeClient<T>where
T: Clone,
Source§fn clone(&self) -> LlbBridgeClient<T>
fn clone(&self) -> LlbBridgeClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for LlbBridgeClient<T>
impl<T> RefUnwindSafe for LlbBridgeClient<T>where
T: RefUnwindSafe,
impl<T> Send for LlbBridgeClient<T>where
T: Send,
impl<T> Sync for LlbBridgeClient<T>where
T: Sync,
impl<T> Unpin for LlbBridgeClient<T>where
T: Unpin,
impl<T> UnwindSafe for LlbBridgeClient<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request