Struct Relay Diagnostics Client
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Independently bounded, additive diagnostics service. Execution and legacy RelayHostRuntime limits and semantics are unchanged. Older hosts return UNIMPLEMENTED. Read permission is separate from submission permission.
Implementations
impl RelayDiagnosticsClient<Channel>
impl RelayDiagnosticsClient<Channel>
connect
pub async fn connect<D>(dst: D) -> Result<Self, Error>where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> RelayDiagnosticsClient<T>where T: GrpcService<Body>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> RelayDiagnosticsClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
new
pub fn new(inner: T) -> Self
with_origin
pub fn with_origin(inner: T, origin: Uri) -> Self
with_interceptor
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RelayDiagnosticsClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::Error: Into<StdError> + Send + Sync,
send_compressed
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
accept_compressed
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
max_decoding_message_size
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
max_encoding_message_size
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
get_diagnostic_capabilities
pub async fn get_diagnostic_capabilities(
&mut self,
request: impl IntoRequest<DiagnosticCredentials>,
) -> Result<Response<DiagnosticCapabilities>, Status>
open_diagnostic_session
pub async fn open_diagnostic_session(
&mut self,
request: impl IntoRequest<DiagnosticOpenRequest>,
) -> Result<Response<DiagnosticSession>, Status>
submit_diagnostic
pub async fn submit_diagnostic(
&mut self,
request: impl IntoRequest<DiagnosticSubmission>,
) -> Result<Response<DiagnosticReceipt>, Status>
read_diagnostic_page
pub async fn read_diagnostic_page(
&mut self,
request: impl IntoRequest<DiagnosticReadRequest>,
) -> Result<Response<DiagnosticReadResponse>, Status>
Trait Implementations
impl<T: Clone> Clone for RelayDiagnosticsClient<T>
impl<T: Clone> Clone for RelayDiagnosticsClient<T>
clone
fn clone(&self) -> RelayDiagnosticsClient<T>
clone_from
fn clone_from(&mut self, source: &Self)
impl<T: Debug> Debug for RelayDiagnosticsClient<T>
impl<T: Debug> Debug for RelayDiagnosticsClient<T>
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result