[][src]Struct kerberos_ccache::DeltaTime

pub struct DeltaTime {
    pub time_offset: u32,
    pub usec_offset: u32,
}

Type of Header.

Definition

DeltaTime {
    uint32_t time_offset;
    dbg!(uint32_t) usec_offset;
};

Fields

time_offset: u32usec_offset: u32

Implementations

impl DeltaTime[src]

pub fn new(time_offset: u32, usec_offset: u32) -> 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. The common way of creation is from Header.tagdata value. DeltaTime::parse(&header.tagdata)

Error

Returns error when the binary has not the expected format.

Trait Implementations

impl Clone for DeltaTime[src]

impl Debug for DeltaTime[src]

impl Default for DeltaTime[src]

impl PartialEq<DeltaTime> for DeltaTime[src]

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