Struct gapi_grpc::google::watcher::v1::watcher_client::WatcherClient [−][src]
The service that a client uses to connect to the watcher system. The errors returned by the service are in the canonical error space, see [google.rpc.Code][].
Implementations
impl WatcherClient<Channel>
[src][−]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src][−]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> WatcherClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src][−]
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
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn watch(
&mut self,
request: impl IntoRequest<Request>
) -> Result<Response<Streaming<ChangeBatch>>, Status>
[src][−]
&mut self,
request: impl IntoRequest<Request>
) -> Result<Response<Streaming<ChangeBatch>>, Status>
Start a streaming RPC to get watch information from the server.
Trait Implementations
impl<T: Clone> Clone for WatcherClient<T>
[src][+]
impl<T> Debug for WatcherClient<T>
[src][+]
Auto Trait Implementations
impl<T> !RefUnwindSafe for WatcherClient<T>
impl<T> Send for WatcherClient<T> where
T: Send,
T: Send,
impl<T> Sync for WatcherClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for WatcherClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for WatcherClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,