Struct gapi_grpc::google::cloud::pubsublite::v1::admin_service_client::AdminServiceClient[][src]

pub struct AdminServiceClient<T> { /* fields omitted */ }
[]

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][]

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][]

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][]

Creates a new topic.

pub async fn get_topic(
    &mut self,
    request: impl IntoRequest<GetTopicRequest>
) -> Result<Response<Topic>, Status>
[src][]

Returns the topic configuration.

pub async fn get_topic_partitions(
    &mut self,
    request: impl IntoRequest<GetTopicPartitionsRequest>
) -> Result<Response<TopicPartitions>, Status>
[src][]

Returns the partition information for the requested topic.

pub async fn list_topics(
    &mut self,
    request: impl IntoRequest<ListTopicsRequest>
) -> Result<Response<ListTopicsResponse>, Status>
[src][]

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][]

Updates properties of the specified topic.

pub async fn delete_topic(
    &mut self,
    request: impl IntoRequest<DeleteTopicRequest>
) -> Result<Response<()>, Status>
[src][]

Deletes the specified topic.

pub async fn list_topic_subscriptions(
    &mut self,
    request: impl IntoRequest<ListTopicSubscriptionsRequest>
) -> Result<Response<ListTopicSubscriptionsResponse>, Status>
[src][]

Lists the subscriptions attached to the specified topic.

pub async fn create_subscription(
    &mut self,
    request: impl IntoRequest<CreateSubscriptionRequest>
) -> Result<Response<Subscription>, Status>
[src][]

Creates a new subscription.

pub async fn get_subscription(
    &mut self,
    request: impl IntoRequest<GetSubscriptionRequest>
) -> Result<Response<Subscription>, Status>
[src][]

Returns the subscription configuration.

pub async fn list_subscriptions(
    &mut self,
    request: impl IntoRequest<ListSubscriptionsRequest>
) -> Result<Response<ListSubscriptionsResponse>, Status>
[src][]

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][]

Updates properties of the specified subscription.

pub async fn delete_subscription(
    &mut self,
    request: impl IntoRequest<DeleteSubscriptionRequest>
) -> Result<Response<()>, Status>
[src][]

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

impl<T> Sync for AdminServiceClient<T> where
    T: Sync

impl<T> Unpin for AdminServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for AdminServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

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][+]

impl<T> IntoRequest<T> for T[src][+]

impl<T> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src][+]

impl<T> WithSubscriber for T[src][+]