[][src]Struct kerberos_ccache::CCache

pub struct CCache {
    pub file_format_version: u16,
    pub header: Header,
    pub primary_principal: Principal,
    pub credentials: Vec<Credential>,
}

To store an array of credentials.

Definition

ccache {
    uint16_t file_format_version; /* 0x0504 */
    uint16_t headerlen; /* only if version is 0x0504 */
    header headers[]; /* only if version is 0x0504 */
    principal primary_principal;
    credential credentials[*];
};

Fields

file_format_version: u16header: Headerprimary_principal: Principalcredentials: Vec<Credential>

Implementations

impl CCache[src]

pub fn new(
    header: Header,
    primary_principal: Principal,
    credentials: Vec<Credential>
) -> 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 CCache[src]

impl Debug for CCache[src]

impl PartialEq<CCache> for CCache[src]

impl StructuralPartialEq for CCache[src]

impl TryFrom<KrbCred> for CCache[src]

type Error = ConvertError

The type returned in the event of a conversion error.

impl TryInto<KrbCred> for CCache[src]

type Error = ConvertError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for CCache

impl Send for CCache

impl Sync for CCache

impl Unpin for CCache

impl UnwindSafe for CCache

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.