[][src]Struct envoy_sdk::host::ByteString

pub struct ByteString { /* fields omitted */ }

Represents a string value that is not necessarily UTF-8 encoded, e.g. an HTTP header value.

Implementations

impl ByteString[src]

pub fn new() -> ByteString[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn as_bytes(&self) -> &[u8][src]

pub fn into_bytes(self) -> Vec<u8>[src]

pub fn into_string(self) -> Result<String, FromUtf8Error>[src]

Trait Implementations

impl AsMut<[u8]> for ByteString[src]

impl AsRef<[u8]> for ByteString[src]

impl Clone for ByteString[src]

impl Debug for ByteString[src]

impl Default for ByteString[src]

impl Deref for ByteString[src]

type Target = ByteStr

The resulting type after dereferencing.

impl DerefMut for ByteString[src]

impl Display for ByteString[src]

impl Eq for ByteString[src]

impl<'_> From<&'_ [u8]> for ByteString[src]

impl<'_> From<&'_ ByteString> for ByteString[src]

impl<'_> From<&'_ str> for ByteString[src]

impl From<String> for ByteString[src]

impl From<Vec<u8>> for ByteString[src]

impl Hash for ByteString[src]

impl<'_> PartialEq<&'_ [u8]> for ByteString[src]

impl<'_> PartialEq<&'_ str> for ByteString[src]

impl PartialEq<[u8]> for ByteString[src]

impl PartialEq<ByteString> for ByteString[src]

impl PartialEq<String> for ByteString[src]

impl PartialEq<Vec<u8>> for ByteString[src]

impl PartialEq<str> for ByteString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.