pub struct ListOffsetsRequestBuilder { /* private fields */ }
Expand description
Builder for ListOffsetsRequest
.
Implementations
sourceimpl ListOffsetsRequestBuilder
impl ListOffsetsRequestBuilder
sourcepub fn replica_id(&mut self, value: BrokerId) -> &mut Self
pub fn replica_id(&mut self, value: BrokerId) -> &mut Self
The broker ID of the requestor, or -1 if this request is being made by a normal consumer.
Supported API versions: 0-7
sourcepub fn isolation_level(&mut self, value: i8) -> &mut Self
pub fn isolation_level(&mut self, value: i8) -> &mut Self
This setting controls the visibility of transactional records. Using READ_UNCOMMITTED (isolation_level = 0) makes all records visible. With READ_COMMITTED (isolation_level = 1), non-transactional and COMMITTED transactional records are visible. To be more concrete, READ_COMMITTED returns all data from offsets smaller than the current LSO (last stable offset), and enables the inclusion of the list of aborted transactions in the result, which allows consumers to discard ABORTED transactional records
Supported API versions: 2-7
sourcepub fn topics(&mut self, value: Vec<ListOffsetsTopic>) -> &mut Self
pub fn topics(&mut self, value: Vec<ListOffsetsTopic>) -> &mut Self
Each topic in the request.
Supported API versions: 0-7
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Vec<u8>>
) -> &mut Self
pub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Vec<u8>>
) -> &mut Self
Other tagged fields
sourcepub fn build(
&self
) -> Result<ListOffsetsRequest, ListOffsetsRequestBuilderError>
pub fn build(
&self
) -> Result<ListOffsetsRequest, ListOffsetsRequestBuilderError>
Trait Implementations
sourceimpl Clone for ListOffsetsRequestBuilder
impl Clone for ListOffsetsRequestBuilder
sourcefn clone(&self) -> ListOffsetsRequestBuilder
fn clone(&self) -> ListOffsetsRequestBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ListOffsetsRequestBuilder
impl Send for ListOffsetsRequestBuilder
impl Sync for ListOffsetsRequestBuilder
impl Unpin for ListOffsetsRequestBuilder
impl UnwindSafe for ListOffsetsRequestBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more