pub struct MonitorClient<T> { /* private fields */ }
Expand description
Service that abstracts a Monitor usage
Implementations§
Source§impl MonitorClient<Channel>
impl MonitorClient<Channel>
Source§impl<T> MonitorClient<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> MonitorClient<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 streaming_open(
&mut self,
request: impl IntoStreamingRequest<Message = StreamingOpenReq>,
) -> Result<Response<Streaming<StreamingOpenResp>>, Status>
pub async fn streaming_open( &mut self, request: impl IntoStreamingRequest<Message = StreamingOpenReq>, ) -> Result<Response<Streaming<StreamingOpenResp>>, Status>
Open a bidirectional monitor stream. This can be used to implement something similar to the Arduino IDE’s Serial Monitor.
Trait Implementations§
Source§impl<T: Clone> Clone for MonitorClient<T>
impl<T: Clone> Clone for MonitorClient<T>
Auto Trait Implementations§
impl<T> Freeze for MonitorClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for MonitorClient<T>
impl<T> Send for MonitorClient<T>where
T: Send,
impl<T> Sync for MonitorClient<T>where
T: Sync,
impl<T> Unpin for MonitorClient<T>where
T: Unpin,
impl<T> !UnwindSafe for MonitorClient<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