pub struct HeaderName { /* private fields */ }
Expand description
Defines a NATS header field name
Header field names identify the header. Header sets may include multiple headers with the same name.
§Representation
HeaderName
represents standard header names using an enum
, as such they
will not require an allocation for storage.
Implementations§
source§impl HeaderName
impl HeaderName
sourcepub const fn from_static(value: &'static str) -> HeaderName
pub const fn from_static(value: &'static str) -> HeaderName
Converts a static string to a NATS header name.
Trait Implementations§
source§impl AsRef<[u8]> for HeaderName
impl AsRef<[u8]> for HeaderName
source§impl AsRef<str> for HeaderName
impl AsRef<str> for HeaderName
source§impl Clone for HeaderName
impl Clone for HeaderName
source§fn clone(&self) -> HeaderName
fn clone(&self) -> HeaderName
Returns a copy of the value. Read more
1.6.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 HeaderName
impl Debug for HeaderName
source§impl<'de> Deserialize<'de> for HeaderName
impl<'de> Deserialize<'de> for HeaderName
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
source§impl Display for HeaderName
impl Display for HeaderName
source§impl FromStr for HeaderName
impl FromStr for HeaderName
source§impl Hash for HeaderName
impl Hash for HeaderName
source§impl IntoHeaderName for HeaderName
impl IntoHeaderName for HeaderName
fn into_header_name(self) -> HeaderName
source§impl PartialEq for HeaderName
impl PartialEq for HeaderName
source§impl Serialize for HeaderName
impl Serialize for HeaderName
impl Eq for HeaderName
impl StructuralPartialEq for HeaderName
Auto Trait Implementations§
impl !Freeze for HeaderName
impl RefUnwindSafe for HeaderName
impl Send for HeaderName
impl Sync for HeaderName
impl Unpin for HeaderName
impl UnwindSafe for HeaderName
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)