[][src]Struct gcp_client::google::pubsub::v1beta2::publisher_client::PublisherClient

pub struct PublisherClient<T> { /* fields omitted */ }

The service that an application uses to manipulate topics, and to send messages to a topic.

Implementations

impl<T> PublisherClient<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<Topic>
) -> Result<Response<Topic>, Status>
[src]

Creates the given topic with the given name.

pub async fn publish<'_>(
    &'_ mut self,
    request: impl IntoRequest<PublishRequest>
) -> Result<Response<PublishResponse>, Status>
[src]

Adds one or more messages to the topic. Returns NOT_FOUND if the topic does not exist.

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

Gets the configuration of a topic.

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

Lists matching topics.

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

Lists the name of the subscriptions for this topic.

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

Deletes the topic with the given name. Returns NOT_FOUND if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted.

Trait Implementations

impl<T: Clone> Clone for PublisherClient<T>[src]

impl<T> Debug for PublisherClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for PublisherClient<T>

impl<T> Send for PublisherClient<T> where
    T: Send

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

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

impl<T> !UnwindSafe for PublisherClient<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, 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>, 

impl<T> WithSubscriber for T[src]