[][src]Struct kerberos_ccache::KeyBlock

pub struct KeyBlock {
    pub keytype: u16,
    pub etype: u16,
    pub keyvalue: Vec<u8>,
}

Represents the session key.

Definition

keyblock {
    uint16_t keytype;
    uint16_t etype; /* only present if version 0x0503 */
    uint16_t keylen;
    uint8_t keyvalue[keylen];
};

Fields

keytype: u16etype: u16keyvalue: Vec<u8>

Implementations

impl KeyBlock[src]

pub fn new(keytype: u16, keyvalue: Vec<u8>) -> Self[src]

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 KeyBlock[src]

impl Debug for KeyBlock[src]

impl PartialEq<KeyBlock> for KeyBlock[src]

impl StructuralPartialEq for KeyBlock[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, 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.