Struct gapi_grpc::google::cloud::pubsublite::v1::admin_service_client::AdminServiceClient [−][src]
The service that a client application uses to manage topics and subscriptions, such creating, listing, and deleting topics and subscriptions.
Implementations
impl AdminServiceClient<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> AdminServiceClient<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 create_topic(
&mut self,
request: impl IntoRequest<CreateTopicRequest>
) -> Result<Response<Topic>, Status>
[src][−]
&mut self,
request: impl IntoRequest<CreateTopicRequest>
) -> Result<Response<Topic>, Status>
Creates a new topic.
pub async fn get_topic(
&mut self,
request: impl IntoRequest<GetTopicRequest>
) -> Result<Response<Topic>, Status>
[src][−]
&mut self,
request: impl IntoRequest<GetTopicRequest>
) -> Result<Response<Topic>, Status>
Returns the topic configuration.
pub async fn get_topic_partitions(
&mut self,
request: impl IntoRequest<GetTopicPartitionsRequest>
) -> Result<Response<TopicPartitions>, Status>
[src][−]
&mut self,
request: impl IntoRequest<GetTopicPartitionsRequest>
) -> Result<Response<TopicPartitions>, Status>
Returns the partition information for the requested topic.
pub async fn list_topics(
&mut self,
request: impl IntoRequest<ListTopicsRequest>
) -> Result<Response<ListTopicsResponse>, Status>
[src][−]
&mut self,
request: impl IntoRequest<ListTopicsRequest>
) -> Result<Response<ListTopicsResponse>, Status>
Returns the list of topics for the given project.
pub async fn update_topic(
&mut self,
request: impl IntoRequest<UpdateTopicRequest>
) -> Result<Response<Topic>, Status>
[src][−]
&mut self,
request: impl IntoRequest<UpdateTopicRequest>
) -> Result<Response<Topic>, Status>
Updates properties of the specified topic.
pub async fn delete_topic(
&mut self,
request: impl IntoRequest<DeleteTopicRequest>
) -> Result<Response<()>, Status>
[src][−]
&mut self,
request: impl IntoRequest<DeleteTopicRequest>
) -> Result<Response<()>, Status>
Deletes the specified topic.
pub async fn list_topic_subscriptions(
&mut self,
request: impl IntoRequest<ListTopicSubscriptionsRequest>
) -> Result<Response<ListTopicSubscriptionsResponse>, Status>
[src][−]
&mut self,
request: impl IntoRequest<ListTopicSubscriptionsRequest>
) -> Result<Response<ListTopicSubscriptionsResponse>, Status>
Lists the subscriptions attached to the specified topic.
pub async fn create_subscription(
&mut self,
request: impl IntoRequest<CreateSubscriptionRequest>
) -> Result<Response<Subscription>, Status>
[src][−]
&mut self,
request: impl IntoRequest<CreateSubscriptionRequest>
) -> Result<Response<Subscription>, Status>
Creates a new subscription.
pub async fn get_subscription(
&mut self,
request: impl IntoRequest<GetSubscriptionRequest>
) -> Result<Response<Subscription>, Status>
[src][−]
&mut self,
request: impl IntoRequest<GetSubscriptionRequest>
) -> Result<Response<Subscription>, Status>
Returns the subscription configuration.
pub async fn list_subscriptions(
&mut self,
request: impl IntoRequest<ListSubscriptionsRequest>
) -> Result<Response<ListSubscriptionsResponse>, Status>
[src][−]
&mut self,
request: impl IntoRequest<ListSubscriptionsRequest>
) -> Result<Response<ListSubscriptionsResponse>, Status>
Returns the list of subscriptions for the given project.
pub async fn update_subscription(
&mut self,
request: impl IntoRequest<UpdateSubscriptionRequest>
) -> Result<Response<Subscription>, Status>
[src][−]
&mut self,
request: impl IntoRequest<UpdateSubscriptionRequest>
) -> Result<Response<Subscription>, Status>
Updates properties of the specified subscription.
pub async fn delete_subscription(
&mut self,
request: impl IntoRequest<DeleteSubscriptionRequest>
) -> Result<Response<()>, Status>
[src][−]
&mut self,
request: impl IntoRequest<DeleteSubscriptionRequest>
) -> Result<Response<()>, Status>
Deletes the specified subscription.
Trait Implementations
impl<T: Clone> Clone for AdminServiceClient<T>
[src][+]
impl<T> Debug for AdminServiceClient<T>
[src][+]
Auto Trait Implementations
impl<T> !RefUnwindSafe for AdminServiceClient<T>
impl<T> Send for AdminServiceClient<T> where
T: Send,
T: Send,
impl<T> Sync for AdminServiceClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AdminServiceClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for AdminServiceClient<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>,