## SubscriptionAdmin

# Trait SubscriptionAdmin

Source

    pub trait SubscriptionAdmin:
        Debug
        + Send
        + Sync {
        // Provided methods
        fn create_subscription(
            &self,
            _req: Subscription,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<Subscription>>> + Send { ... }
        fn get_subscription(
            &self,
            _req: GetSubscriptionRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<Subscription>>> + Send { ... }
        fn update_subscription(
            &self,
            _req: UpdateSubscriptionRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<Subscription>>> + Send { ... }
        fn list_subscriptions(
            &self,
            _req: ListSubscriptionsRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<ListSubscriptionsResponse>>> + Send { ... }
        fn delete_subscription(
            &self,
            _req: DeleteSubscriptionRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<()>>> + Send { ... }
        fn modify_push_config(
            &self,
            _req: ModifyPushConfigRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<()>>> + Send { ... }
        fn get_snapshot(
            &self,
            _req: GetSnapshotRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<Snapshot>>> + Send { ... }
        fn list_snapshots(
            &self,
            _req: ListSnapshotsRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<ListSnapshotsResponse>>> + Send { ... }
        fn create_snapshot(
            &self,
            _req: CreateSnapshotRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<Snapshot>>> + Send { ... }
        fn update_snapshot(
            &self,
            _req: UpdateSnapshotRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<Snapshot>>> + Send { ... }
        fn delete_snapshot(
            &self,
            _req: DeleteSnapshotRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<()>>> + Send { ... }
        fn seek(
            &self,
            _req: SeekRequest,
            _options: RequestOptions,
        ) -> impl Future<Output = Result<Response<SeekResponse>>> + Send { ... }
    }

Expand description

Defines the trait used to implement super::client::SubscriptionAdmin.

Application developers may need to implement this trait to mock `client::SubscriptionAdmin`. In other use-cases, application developers only use `client::SubscriptionAdmin` and need not be concerned with this trait or its implementations.

Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.

## Provided Methods§

Source

#### fn create_subscription( &self, _req: Subscription, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Subscription>>> + Send

Implements super::client::SubscriptionAdmin::create_subscription.

Source

#### fn get_subscription( &self, _req: GetSubscriptionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Subscription>>> + Send

Implements super::client::SubscriptionAdmin::get_subscription.

Source

#### fn update_subscription( &self, _req: UpdateSubscriptionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Subscription>>> + Send

Implements super::client::SubscriptionAdmin::update_subscription.

Source

#### fn list_subscriptions( &self, _req: ListSubscriptionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListSubscriptionsResponse>>> + Send

Implements super::client::SubscriptionAdmin::list_subscriptions.

Source

#### fn delete_subscription( &self, _req: DeleteSubscriptionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Implements super::client::SubscriptionAdmin::delete_subscription.

Source

#### fn modify_push_config( &self, _req: ModifyPushConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Implements super::client::SubscriptionAdmin::modify_push_config.

Source

#### fn get_snapshot( &self, _req: GetSnapshotRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Snapshot>>> + Send

Implements super::client::SubscriptionAdmin::get_snapshot.

Source

#### fn list_snapshots( &self, _req: ListSnapshotsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListSnapshotsResponse>>> + Send

Implements super::client::SubscriptionAdmin::list_snapshots.

Source

#### fn create_snapshot( &self, _req: CreateSnapshotRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Snapshot>>> + Send

Implements super::client::SubscriptionAdmin::create_snapshot.

Source

#### fn update_snapshot( &self, _req: UpdateSnapshotRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Snapshot>>> + Send

Implements super::client::SubscriptionAdmin::update_snapshot.

Source

#### fn delete_snapshot( &self, _req: DeleteSnapshotRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Implements super::client::SubscriptionAdmin::delete_snapshot.

Source

#### fn seek( &self, _req: SeekRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SeekResponse>>> + Send

Implements super::client::SubscriptionAdmin::seek.

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

## Implementors§