#[repr(u32)]pub enum RDKafkaType {
Producer = 0,
Consumer = 1,
}
Expand description
Kafka client types
Variants§
Trait Implementations§
Source§impl Clone for RDKafkaType
impl Clone for RDKafkaType
Source§fn clone(&self) -> RDKafkaType
fn clone(&self) -> RDKafkaType
Returns a duplicate of the value. Read more
1.0.0 · 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 RDKafkaType
impl Debug for RDKafkaType
Source§impl From<RDKafkaType> for rd_kafka_type_t
impl From<RDKafkaType> for rd_kafka_type_t
Source§fn from(value: RDKafkaType) -> Self
fn from(value: RDKafkaType) -> Self
Converts to this type from the input type.
Source§impl From<rd_kafka_type_t> for RDKafkaType
impl From<rd_kafka_type_t> for RDKafkaType
Source§fn from(value: rd_kafka_type_t) -> Self
fn from(value: rd_kafka_type_t) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RDKafkaType
impl PartialEq for RDKafkaType
Source§impl TryFrom<u32> for RDKafkaType
impl TryFrom<u32> for RDKafkaType
Source§type Error = TryFromPrimitiveError<RDKafkaType>
type Error = TryFromPrimitiveError<RDKafkaType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for RDKafkaType
impl TryFromPrimitive for RDKafkaType
const NAME: &'static str = "RDKafkaType"
type Primitive = u32
type Error = TryFromPrimitiveError<RDKafkaType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RDKafkaType
impl Eq for RDKafkaType
impl StructuralPartialEq for RDKafkaType
Auto Trait Implementations§
impl Freeze for RDKafkaType
impl RefUnwindSafe for RDKafkaType
impl Send for RDKafkaType
impl Sync for RDKafkaType
impl Unpin for RDKafkaType
impl UnwindSafe for RDKafkaType
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