Struct pravega_controller_client::ControllerClientImpl [−][src]
Implementations
impl ControllerClientImpl
[src]
pub fn new(config: ClientConfig, rt: &Runtime) -> Self
[src]
Create a pooled connection to the controller. The pool size is decided by the ClientConfig. The requests will be load balanced across multiple connections and every connection supports multiplexing of requests.
pub async fn reset(&self)
[src]
reset method needs to be invoked in the case of ConnectionError. This logic can be removed once https://github.com/tower-rs/tower/issues/383 is fixed.
Trait Implementations
impl ControllerClient for ControllerClientImpl
[src]
fn create_scope<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 Scope
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
scope: &'life1 Scope
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_streams<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 Scope
) -> Pin<Box<dyn Future<Output = ResultRetry<Vec<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
scope: &'life1 Scope
) -> Pin<Box<dyn Future<Output = ResultRetry<Vec<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_scope<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 Scope
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
scope: &'life1 Scope
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
stream_config: &'life1 StreamConfiguration
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream_config: &'life1 StreamConfiguration
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
stream_config: &'life1 StreamConfiguration
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream_config: &'life1 StreamConfiguration
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn truncate_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
stream_cut: &'life1 StreamCut
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream_cut: &'life1 StreamCut
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn seal_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_current_segments<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<StreamSegments>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<StreamSegments>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_epoch_segments<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream,
epoch: i32
) -> Pin<Box<dyn Future<Output = ResultRetry<StreamSegments>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream,
epoch: i32
) -> Pin<Box<dyn Future<Output = ResultRetry<StreamSegments>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_head_segments<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<ImHashMap<Segment, i64>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<ImHashMap<Segment, i64>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream,
lease: Duration
) -> Pin<Box<dyn Future<Output = ResultRetry<TxnSegments>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream,
lease: Duration
) -> Pin<Box<dyn Future<Output = ResultRetry<TxnSegments>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn ping_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream,
tx_id: TxId,
lease: Duration
) -> Pin<Box<dyn Future<Output = ResultRetry<PingStatus>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream,
tx_id: TxId,
lease: Duration
) -> Pin<Box<dyn Future<Output = ResultRetry<PingStatus>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn commit_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream,
tx_id: TxId,
writer_id: WriterId,
time: Timestamp
) -> Pin<Box<dyn Future<Output = ResultRetry<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream,
tx_id: TxId,
writer_id: WriterId,
time: Timestamp
) -> Pin<Box<dyn Future<Output = ResultRetry<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn abort_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream,
tx_id: TxId
) -> Pin<Box<dyn Future<Output = ResultRetry<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream,
tx_id: TxId
) -> Pin<Box<dyn Future<Output = ResultRetry<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn check_transaction_status<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream,
tx_id: TxId
) -> Pin<Box<dyn Future<Output = ResultRetry<TransactionStatus>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream,
tx_id: TxId
) -> Pin<Box<dyn Future<Output = ResultRetry<TransactionStatus>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_endpoint_for_segment<'life0, 'life1, 'async_trait>(
&'life0 self,
segment: &'life1 ScopedSegment
) -> Pin<Box<dyn Future<Output = ResultRetry<PravegaNodeUri>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
segment: &'life1 ScopedSegment
) -> Pin<Box<dyn Future<Output = ResultRetry<PravegaNodeUri>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_or_refresh_delegation_token_for<'life0, 'async_trait>(
&'life0 self,
stream: ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: ScopedStream
) -> Pin<Box<dyn Future<Output = ResultRetry<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_successors<'life0, 'life1, 'async_trait>(
&'life0 self,
segment: &'life1 ScopedSegment
) -> Pin<Box<dyn Future<Output = ResultRetry<StreamSegmentsWithPredecessors>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
segment: &'life1 ScopedSegment
) -> Pin<Box<dyn Future<Output = ResultRetry<StreamSegmentsWithPredecessors>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn scale_stream<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream,
sealed_segment_ids: &'life2 [Segment],
new_ranges: &'life3 [(f64, f64)]
) -> Pin<Box<dyn Future<Output = ResultRetry<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream,
sealed_segment_ids: &'life2 [Segment],
new_ranges: &'life3 [(f64, f64)]
) -> Pin<Box<dyn Future<Output = ResultRetry<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn check_scale<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 ScopedStream,
scale_epoch: i32
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 ScopedStream,
scale_epoch: i32
) -> Pin<Box<dyn Future<Output = ResultRetry<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for ControllerClientImpl
impl Send for ControllerClientImpl
impl Sync for ControllerClientImpl
impl Unpin for ControllerClientImpl
impl !UnwindSafe for ControllerClientImpl
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> Same<T> for T
type Output = T
Should always be Self
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>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,