pub struct ListOffsetsResult { /* private fields */ }Expand description
The result of Admin::list_offsets.
Implementations§
Source§impl ListOffsetsResult
impl ListOffsetsResult
Sourcepub fn new(
futures: HashMap<TopicPartition, KafkaFuture<ListOffsetsResultInfo>>,
) -> Self
pub fn new( futures: HashMap<TopicPartition, KafkaFuture<ListOffsetsResultInfo>>, ) -> Self
Creates a result from the per-partition futures.
§Arguments
futures- the future of each partition’s offset.
Sourcepub fn partition_result(
&self,
partition: &TopicPartition,
) -> Result<KafkaFuture<ListOffsetsResultInfo>, Error>
pub fn partition_result( &self, partition: &TopicPartition, ) -> Result<KafkaFuture<ListOffsetsResultInfo>, Error>
Sourcepub fn all(&self) -> KafkaFuture<HashMap<TopicPartition, ListOffsetsResultInfo>>
pub fn all(&self) -> KafkaFuture<HashMap<TopicPartition, ListOffsetsResultInfo>>
Returns a future which succeeds only if offsets for all specified partitions have been successfully retrieved.
Trait Implementations§
Source§impl Clone for ListOffsetsResult
impl Clone for ListOffsetsResult
Auto Trait Implementations§
impl !RefUnwindSafe for ListOffsetsResult
impl !UnwindSafe for ListOffsetsResult
impl Freeze for ListOffsetsResult
impl Send for ListOffsetsResult
impl Sync for ListOffsetsResult
impl Unpin for ListOffsetsResult
impl UnsafeUnpin for ListOffsetsResult
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