pub struct DebugClient<T> { /* private fields */ }
Expand description
Service that abstract a debug Session usage
Implementations§
Source§impl DebugClient<Channel>
impl DebugClient<Channel>
Source§impl<T> DebugClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
impl<T> DebugClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
Sourcepub async fn debug(
&mut self,
request: impl IntoStreamingRequest<Message = DebugReq>,
) -> Result<Response<Streaming<DebugResp>>, Status>
pub async fn debug( &mut self, request: impl IntoStreamingRequest<Message = DebugReq>, ) -> Result<Response<Streaming<DebugResp>>, Status>
Start a debug session and communicate with the debugger tool.
pub async fn get_debug_config( &mut self, request: impl IntoRequest<DebugConfigReq>, ) -> Result<Response<GetDebugConfigResp>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for DebugClient<T>
impl<T: Clone> Clone for DebugClient<T>
Auto Trait Implementations§
impl<T> Freeze for DebugClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for DebugClient<T>
impl<T> Send for DebugClient<T>where
T: Send,
impl<T> Sync for DebugClient<T>where
T: Sync,
impl<T> Unpin for DebugClient<T>where
T: Unpin,
impl<T> !UnwindSafe for DebugClient<T>
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> 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