pub struct PartitionResult {
pub partition_id: i32,
pub error_code: i16,
pub error_message: Option<KafkaString>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition_id: i32The partition id.
error_code: i16The result error, or zero if there was no error.
error_message: Option<KafkaString>The result message, or null if there was no error.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl PartitionResult
impl PartitionResult
pub fn with_partition_id(self, value: i32) -> Self
pub fn with_error_code(self, value: i16) -> Self
pub fn with_error_message(self, value: Option<KafkaString>) -> 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§
Source§impl Clone for PartitionResult
impl Clone for PartitionResult
Source§fn clone(&self) -> PartitionResult
fn clone(&self) -> PartitionResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitionResult
impl Debug for PartitionResult
Source§impl Default for PartitionResult
impl Default for PartitionResult
Source§impl PartialEq for PartitionResult
impl PartialEq for PartitionResult
Source§fn eq(&self, other: &PartitionResult) -> bool
fn eq(&self, other: &PartitionResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionResult
Auto Trait Implementations§
impl !Freeze for PartitionResult
impl RefUnwindSafe for PartitionResult
impl Send for PartitionResult
impl Sync for PartitionResult
impl Unpin for PartitionResult
impl UnsafeUnpin for PartitionResult
impl UnwindSafe for PartitionResult
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