pub struct FetchPartition<'a> {
pub topic: &'a str,
pub offset: i64,
pub partition: i32,
pub max_bytes: i32,
}
Expand description
Partition related request data for fetching messages.
See KafkaClient::fetch_messages
.
Fields§
§topic: &'a str
The topic to fetch messages from.
offset: i64
The offset as of which to fetch messages.
partition: i32
The partition to fetch messasges from.
max_bytes: i32
Specifies the max. amount of data to fetch (for this partition.) This implicitly defines the biggest message the client can accept. If this value is too small, no messages can be delivered. Setting this size should be in sync with the producers to the partition.
Zero or negative values are treated as “unspecified”.
Implementations§
Trait Implementations§
source§impl<'a> AsRef<FetchPartition<'a>> for FetchPartition<'a>
impl<'a> AsRef<FetchPartition<'a>> for FetchPartition<'a>
Auto Trait Implementations§
impl<'a> Freeze for FetchPartition<'a>
impl<'a> RefUnwindSafe for FetchPartition<'a>
impl<'a> Send for FetchPartition<'a>
impl<'a> Sync for FetchPartition<'a>
impl<'a> Unpin for FetchPartition<'a>
impl<'a> UnwindSafe for FetchPartition<'a>
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