Struct fluvio_dataplane_protocol::api::RequestHeader
source · [−]pub struct RequestHeader { /* private fields */ }
Implementations
sourceimpl RequestHeader
impl RequestHeader
pub fn new(api_key: u16) -> RequestHeader
pub fn new_with_client<T>(api_key: u16, client_id: T) -> RequestHeader where
T: Into<String>,
pub fn api_key(&self) -> u16
pub fn api_version(&self) -> i16
pub fn set_api_version(&mut self, version: i16) -> &mut RequestHeader
pub fn correlation_id(&self) -> i32
pub fn set_correlation_id(&mut self, id: i32) -> &mut RequestHeader
pub fn client_id(&self) -> &String
pub fn set_client_id<T>(&mut self, client_id: T) -> &mut RequestHeader where
T: Into<String>,
Trait Implementations
sourceimpl Clone for RequestHeader
impl Clone for RequestHeader
sourcefn clone(&self) -> RequestHeader
fn clone(&self) -> RequestHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RequestHeader
impl Debug for RequestHeader
sourceimpl Decoder for RequestHeader
impl Decoder for RequestHeader
sourceimpl Default for RequestHeader
impl Default for RequestHeader
sourcefn default() -> RequestHeader
fn default() -> RequestHeader
Returns the “default value” for a type. Read more
sourceimpl Display for RequestHeader
impl Display for RequestHeader
Auto Trait Implementations
impl RefUnwindSafe for RequestHeader
impl Send for RequestHeader
impl Sync for RequestHeader
impl Unpin for RequestHeader
impl UnwindSafe for RequestHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more