Struct ControllerServiceClient

Source
pub struct ControllerServiceClient<T> { /* private fields */ }
Expand description

Producer, Consumer and Admin APIs supported by Stream Controller Service

Implementations§

Source§

impl ControllerServiceClient<Channel>

Source

pub async fn connect<D>(dst: D) -> Result<Self, Error>
where D: TryInto<Endpoint>, D::Error: Into<StdError>,

Attempt to create a new client by connecting to a given endpoint.

Source§

impl<T> ControllerServiceClient<T>
where T: GrpcService<BoxBody>, T::ResponseBody: Body + Send + Sync + 'static, T::Error: Into<StdError>, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

Source

pub fn new(inner: T) -> Self

Source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> ControllerServiceClient<InterceptedService<T, F>>
where F: Interceptor, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,

Source

pub fn send_gzip(self) -> Self

Compress requests with gzip.

This requires the server to support it otherwise it might respond with an error.

Source

pub fn accept_gzip(self) -> Self

Enable decompressing responses with gzip.

Source

pub async fn get_controller_server_list( &mut self, request: impl IntoRequest<ServerRequest>, ) -> Result<Response<ServerResponse>, Status>

Source

pub async fn create_stream( &mut self, request: impl IntoRequest<StreamConfig>, ) -> Result<Response<CreateStreamStatus>, Status>

Source

pub async fn update_stream( &mut self, request: impl IntoRequest<StreamConfig>, ) -> Result<Response<UpdateStreamStatus>, Status>

Source

pub async fn truncate_stream( &mut self, request: impl IntoRequest<StreamCut>, ) -> Result<Response<UpdateStreamStatus>, Status>

Source

pub async fn seal_stream( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<UpdateStreamStatus>, Status>

Source

pub async fn delete_stream( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<DeleteStreamStatus>, Status>

Source

pub async fn get_current_segments( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<SegmentRanges>, Status>

Source

pub async fn get_epoch_segments( &mut self, request: impl IntoRequest<GetEpochSegmentsRequest>, ) -> Result<Response<SegmentRanges>, Status>

Source

pub async fn get_segments( &mut self, request: impl IntoRequest<GetSegmentsRequest>, ) -> Result<Response<SegmentsAtTime>, Status>

Source

pub async fn get_segments_immediatly_following( &mut self, request: impl IntoRequest<SegmentId>, ) -> Result<Response<SuccessorResponse>, Status>

Deprecated RPC: https://github.com/pravega/pravega/issues/3760

Source

pub async fn get_segments_immediately_following( &mut self, request: impl IntoRequest<SegmentId>, ) -> Result<Response<SuccessorResponse>, Status>

Source

pub async fn get_segments_between( &mut self, request: impl IntoRequest<StreamCutRange>, ) -> Result<Response<StreamCutRangeResponse>, Status>

Source

pub async fn scale( &mut self, request: impl IntoRequest<ScaleRequest>, ) -> Result<Response<ScaleResponse>, Status>

Source

pub async fn check_scale( &mut self, request: impl IntoRequest<ScaleStatusRequest>, ) -> Result<Response<ScaleStatusResponse>, Status>

Source

pub async fn get_uri( &mut self, request: impl IntoRequest<SegmentId>, ) -> Result<Response<NodeUri>, Status>

Source

pub async fn is_segment_valid( &mut self, request: impl IntoRequest<SegmentId>, ) -> Result<Response<SegmentValidityResponse>, Status>

Source

pub async fn is_stream_cut_valid( &mut self, request: impl IntoRequest<StreamCut>, ) -> Result<Response<StreamCutValidityResponse>, Status>

Source

pub async fn create_transaction( &mut self, request: impl IntoRequest<CreateTxnRequest>, ) -> Result<Response<CreateTxnResponse>, Status>

Source

pub async fn commit_transaction( &mut self, request: impl IntoRequest<TxnRequest>, ) -> Result<Response<TxnStatus>, Status>

Source

pub async fn abort_transaction( &mut self, request: impl IntoRequest<TxnRequest>, ) -> Result<Response<TxnStatus>, Status>

Source

pub async fn ping_transaction( &mut self, request: impl IntoRequest<PingTxnRequest>, ) -> Result<Response<PingTxnStatus>, Status>

Source

pub async fn check_transaction_state( &mut self, request: impl IntoRequest<TxnRequest>, ) -> Result<Response<TxnState>, Status>

Source

pub async fn create_scope( &mut self, request: impl IntoRequest<ScopeInfo>, ) -> Result<Response<CreateScopeStatus>, Status>

Source

pub async fn list_scopes( &mut self, request: impl IntoRequest<ScopesRequest>, ) -> Result<Response<ScopesResponse>, Status>

Source

pub async fn check_scope_exists( &mut self, request: impl IntoRequest<ScopeInfo>, ) -> Result<Response<ExistsResponse>, Status>

Source

pub async fn check_stream_exists( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<ExistsResponse>, Status>

Source

pub async fn list_streams_in_scope( &mut self, request: impl IntoRequest<StreamsInScopeRequest>, ) -> Result<Response<StreamsInScopeResponse>, Status>

Source

pub async fn delete_scope( &mut self, request: impl IntoRequest<ScopeInfo>, ) -> Result<Response<DeleteScopeStatus>, Status>

Source

pub async fn get_delegation_token( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<DelegationToken>, Status>

Source

pub async fn remove_writer( &mut self, request: impl IntoRequest<RemoveWriterRequest>, ) -> Result<Response<RemoveWriterResponse>, Status>

Source

pub async fn note_timestamp_from_writer( &mut self, request: impl IntoRequest<TimestampFromWriter>, ) -> Result<Response<TimestampResponse>, Status>

Source

pub async fn create_key_value_table( &mut self, request: impl IntoRequest<KeyValueTableConfig>, ) -> Result<Response<CreateKeyValueTableStatus>, Status>

Source

pub async fn get_current_segments_key_value_table( &mut self, request: impl IntoRequest<KeyValueTableInfo>, ) -> Result<Response<SegmentRanges>, Status>

Source

pub async fn list_key_value_tables_in_scope( &mut self, request: impl IntoRequest<KvTablesInScopeRequest>, ) -> Result<Response<KvTablesInScopeResponse>, Status>

Source

pub async fn delete_key_value_table( &mut self, request: impl IntoRequest<KeyValueTableInfo>, ) -> Result<Response<DeleteKvTableStatus>, Status>

Source

pub async fn list_subscribers( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<SubscribersResponse>, Status>

Source

pub async fn update_subscriber_stream_cut( &mut self, request: impl IntoRequest<SubscriberStreamCut>, ) -> Result<Response<UpdateSubscriberStatus>, Status>

Source

pub async fn create_reader_group( &mut self, request: impl IntoRequest<ReaderGroupConfiguration>, ) -> Result<Response<CreateReaderGroupResponse>, Status>

Source

pub async fn get_reader_group_config( &mut self, request: impl IntoRequest<ReaderGroupInfo>, ) -> Result<Response<ReaderGroupConfigResponse>, Status>

Source

pub async fn delete_reader_group( &mut self, request: impl IntoRequest<ReaderGroupInfo>, ) -> Result<Response<DeleteReaderGroupStatus>, Status>

Source

pub async fn update_reader_group( &mut self, request: impl IntoRequest<ReaderGroupConfiguration>, ) -> Result<Response<UpdateReaderGroupResponse>, Status>

Source

pub async fn get_stream_configuration( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<StreamConfig>, Status>

Source

pub async fn list_streams_in_scope_for_tag( &mut self, request: impl IntoRequest<StreamsInScopeWithTagRequest>, ) -> Result<Response<StreamsInScopeResponse>, Status>

Trait Implementations§

Source§

impl<T: Clone> Clone for ControllerServiceClient<T>

Source§

fn clone(&self) -> ControllerServiceClient<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for ControllerServiceClient<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for ControllerServiceClient<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for ControllerServiceClient<T>
where T: RefUnwindSafe,

§

impl<T> Send for ControllerServiceClient<T>
where T: Send,

§

impl<T> Sync for ControllerServiceClient<T>
where T: Sync,

§

impl<T> Unpin for ControllerServiceClient<T>
where T: Unpin,

§

impl<T> UnwindSafe for ControllerServiceClient<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,