pub struct ApiKey(pub i16);Expand description
A Kafka request API key, as the raw wire int16.
This is the numeric code in the ApiKey field of a request header. It is
different from the typed krabka_protocol::ApiKey enum, which names each
key, such as Produce and Fetch. This newtype is the boundary value that
goes through the hand-written header construction and through the tap and
proxy frame parsers. It pairs with an ApiVersion, and the two are
adjacent i16s that must not be transposed.
Tuple Fields§
§0: i16Implementations§
Trait Implementations§
impl Copy for ApiKey
Source§impl<'de> Deserialize<'de> for ApiKey
impl<'de> Deserialize<'de> for ApiKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApiKey
Source§impl Ord for ApiKey
impl Ord for ApiKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ApiKey
impl PartialOrd for ApiKey
Source§impl PartialOrd<ApiKey> for i16
impl PartialOrd<ApiKey> for i16
Source§impl PartialOrd<i16> for ApiKey
impl PartialOrd<i16> for ApiKey
impl StructuralPartialEq for ApiKey
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnsafeUnpin for ApiKey
impl UnwindSafe for ApiKey
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