Struct gapi_grpc::google::pubsub::v1beta2::subscriber_client::SubscriberClient [−][src]
The service that an application uses to manipulate subscriptions and to consume messages from a subscription via the Pull method.
Implementations
impl SubscriberClient<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> SubscriberClient<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_subscription(
&mut self,
request: impl IntoRequest<Subscription>
) -> Result<Response<Subscription>, Status>
[src]
&mut self,
request: impl IntoRequest<Subscription>
) -> Result<Response<Subscription>, Status>
Creates a subscription to a given topic for a given subscriber. If the subscription already exists, returns ALREADY_EXISTS. If the corresponding topic doesn’t exist, returns NOT_FOUND.
If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic.
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>
Gets the configuration details of a subscription.
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>
Lists matching subscriptions.
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 an existing subscription. All pending messages in the subscription are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified.
pub async fn modify_ack_deadline(
&mut self,
request: impl IntoRequest<ModifyAckDeadlineRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<ModifyAckDeadlineRequest>
) -> Result<Response<()>, Status>
Modifies the ack deadline for a specific message. This method is useful to indicate that more time is needed to process a message by the subscriber, or to make the message available for redelivery if the processing was interrupted.
pub async fn acknowledge(
&mut self,
request: impl IntoRequest<AcknowledgeRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<AcknowledgeRequest>
) -> Result<Response<()>, Status>
Acknowledges the messages associated with the ack tokens in the AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from the subscription.
Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error.
pub async fn pull(
&mut self,
request: impl IntoRequest<PullRequest>
) -> Result<Response<PullResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<PullRequest>
) -> Result<Response<PullResponse>, Status>
Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return UNAVAILABLE if there are too many concurrent pull requests pending for the given subscription.
pub async fn modify_push_config(
&mut self,
request: impl IntoRequest<ModifyPushConfigRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<ModifyPushConfigRequest>
) -> Result<Response<()>, Status>
Modifies the PushConfig for a specified subscription.
This may be used to change a push subscription to a pull one (signified by an empty PushConfig) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the PushConfig.
Trait Implementations
impl<T: Clone> Clone for SubscriberClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for SubscriberClient<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for SubscriberClient<T>
impl<T> Send for SubscriberClient<T> where
T: Send,
T: Send,
impl<T> Sync for SubscriberClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SubscriberClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for SubscriberClient<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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,