Struct kafka::client::FetchPartition [] [src]

pub struct FetchPartition<'a> {
    pub topic: &'a str,
    pub offset: i64,
    pub partition: i32,
    pub max_bytes: i32,
}

Partition related request data for fetching messages. See KafkaClient::fetch_messages.

Fields

The topic to fetch messages from.

The offset as of which to fetch messages.

The partition to fetch messasges from.

Specifies the max. amount of data to fetch (for this partition.) This implicitely 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".

Methods

impl<'a> FetchPartition<'a>
[src]

[src]

Creates a new "fetch messages" request structure with an unspecified max_bytes.

[src]

Sets the max_bytes value for the "fetch messages" request.

Trait Implementations

impl<'a> Debug for FetchPartition<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> AsRef<FetchPartition<'a>> for FetchPartition<'a>
[src]

[src]

Performs the conversion.