pub struct Cursor {
pub topic_name: KafkaString,
pub partition_index: i32,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§topic_name: KafkaStringThe name for the first topic to process.
partition_index: i32The partition index to start with.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl Cursor
impl Cursor
pub fn with_topic_name(self, value: KafkaString) -> Self
pub fn with_partition_index(self, value: i32) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl !Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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