Struct gapi_grpc::google::cloud::pubsublite::v1::partition_assignment_service_client::PartitionAssignmentServiceClient[][src]

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

The service that a subscriber client application uses to determine which partitions it should connect to.

Implementations

impl PartitionAssignmentServiceClient<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> PartitionAssignmentServiceClient<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 assign_partitions(
    &mut self,
    request: impl IntoStreamingRequest<Message = PartitionAssignmentRequest>
) -> Result<Response<Streaming<PartitionAssignment>>, Status>
[src]

Assign partitions for this client to handle for the specified subscription.

The client must send an InitialPartitionAssignmentRequest first. The server will then send at most one unacknowledged PartitionAssignment outstanding on the stream at a time. The client should send a PartitionAssignmentAck after updating the partitions it is connected to to reflect the new assignment.

Trait Implementations

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for PartitionAssignmentServiceClient<T>

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

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

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

impl<T> !UnwindSafe for PartitionAssignmentServiceClient<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]