[][src]Struct kerberos_ccache::CountedOctetString

pub struct CountedOctetString {
    pub data: Vec<u8>,
}

String used by ccache.

Definition

counted_octet_string {
   uint32_t length;
   uint8_t data[length];
};

Fields

data: Vec<u8>

The field data of counted_octet_string. To obtain the field lengthjust do data.len().

Implementations

impl CountedOctetString[src]

pub fn new(data: Vec<u8>) -> Self[src]

Creates new CountedOctetString from the data field.

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

Build the binary representation

pub fn parse(raw: &[u8]) -> IResult<&[u8], Self>[src]

Creates a new instance from the binary representation

Error

Returns error when the binary has not the expected format.

Trait Implementations

impl Clone for CountedOctetString[src]

impl Debug for CountedOctetString[src]

impl Default for CountedOctetString[src]

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

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

impl PartialEq<CountedOctetString> for CountedOctetString[src]

impl StructuralPartialEq for CountedOctetString[src]

impl TryInto<String> for CountedOctetString[src]

type Error = FromUtf8Error

The type returned in the event of a conversion error.

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, 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.