pub struct FenceProducersResult { /* private fields */ }Expand description
The result of Admin::fence_producers.
Implementations§
Source§impl FenceProducersResult
impl FenceProducersResult
Sourcepub fn fenced_producers(&self) -> HashMap<String, KafkaFuture<()>>
pub fn fenced_producers(&self) -> HashMap<String, KafkaFuture<()>>
Returns a map from transactional id to futures which can be used to check the status of individual fencings.
Sourcepub fn producer_id(
&self,
transactional_id: &str,
) -> Result<KafkaFuture<i64>, Error>
pub fn producer_id( &self, transactional_id: &str, ) -> Result<KafkaFuture<i64>, Error>
Returns a future that provides the producer id generated while initializing the given transaction when the request completes.
§Arguments
transactional_id- the transactional id of the transaction.
§Errors
Returns an error answering Error::is_local_illegal_argument_error if transactional_id
was not
included in the request.
Sourcepub fn epoch_id(
&self,
transactional_id: &str,
) -> Result<KafkaFuture<i16>, Error>
pub fn epoch_id( &self, transactional_id: &str, ) -> Result<KafkaFuture<i16>, Error>
Returns a future that provides the epoch generated while initializing the given transaction when the request completes.
§Arguments
transactional_id- the transactional id of the transaction.
§Errors
Returns an error answering Error::is_local_illegal_argument_error if transactional_id
was not
included in the request.
Sourcepub fn all(&self) -> KafkaFuture<()>
pub fn all(&self) -> KafkaFuture<()>
Returns a future which succeeds only if all the producer fencings succeed.
Trait Implementations§
Source§impl Clone for FenceProducersResult
impl Clone for FenceProducersResult
Source§fn clone(&self) -> FenceProducersResult
fn clone(&self) -> FenceProducersResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FenceProducersResult
impl !RefUnwindSafe for FenceProducersResult
impl Send for FenceProducersResult
impl Sync for FenceProducersResult
impl Unpin for FenceProducersResult
impl UnsafeUnpin for FenceProducersResult
impl !UnwindSafe for FenceProducersResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more