[][src]Struct file_crypto::file::Header

pub struct Header {
    pub file_size: u64,
    pub chunk_size: u64,
    pub signature: [u8; 64],
}

Fields

file_size: u64chunk_size: u64signature: [u8; 64]

Methods

impl Header
[src]

pub fn new(file_size: u64, chunk_size: u64, signature: [u8; 64]) -> Self
[src]

pub fn from_slice(buf: &[u8]) -> Self
[src]

pub fn from_file(file: &File) -> Self
[src]

pub fn data(&self) -> [u8; 80]
[src]

Auto Trait Implementations

impl Send for Header

impl Sync for Header

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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