pub fn commit_offset(&mut self,
                         group: &str,
                         topic: &str,
                         partition: i32,
                         offset: i64)
                         -> Result<()> {
        self.commit_offsets(group, &[CommitOffset::new(topic, partition, offset)])
    }
/// Commit offset of a particular topic partition on behalf of a
/// consumer group.
///
/// # Examples
///
/// ```no_run
/// use kafka::client::KafkaClient;
///
/// let mut client = KafkaClient::new(vec!["localhost:9092".to_owned()]);
/// client.load_metadata_all().unwrap();
/// client.commit_offset("my-group", "my-topic", 0, 100).unwrap();
/// ```
///
/// See also `KafkaClient::commit_offsets`.
Commit offset of a particular topic partition on behalf of a
consumer group.
Commit offset of a particular topic partition on behalf of a consumer group .
pub fn commit_offset(&mut self,
                         group: &str,
                         topic: &str,
                         partition: i32,
                         offset: i64)
                         -> Result<()> {
        self.commit_offsets(group, &[CommitOffset::new(topic, partition, offset)])
    }
pub fn commit_offset ( & mut self , group : & str , topic : & str , partition : i32 , offset : i64 ) -> Result < ( ) > { self . commit_offsets ( group , & [ CommitOffset :: new ( topic , partition , offset ) ] ) }
Commit offset of a particular topic partition on behalf of a
consumer group.
Commit offset of a particular topic partition on behalf of a consumer group .
&mut self
group
&str
topic
&str
partition
i32
offset
i64
examples
```no_run
use kafka::client::KafkaClient.

let mut client = KafkaClient::new(vec!["localhost:9092".to_owned()]);
client.load_metadata_all().unwrap();
client.commit_offset("my-group", "my-topic", 0, 100).unwrap();
```

See also `KafkaClient::commit_offsets`.
` ` ` no_run use kafka :: client :: KafkaClient . let mut client = KafkaClient :: new ( vec! [ " localhost : 9092 " . to_owned () ] ) ; client . load_metadata_all () . unwrap () ; client . commit_offset ( " my - group " " my - topic " 0 100 ) . unwrap () ; ` ` ` See also ` KafkaClient :: commit_offsets ` .