[][src]Struct cannyls::lump::LumpHeader

pub struct LumpHeader {
    pub approximate_data_size: u32,
}

Lumpの概要情報.

"ヘッダ"という用語は若干不正確だが、 HEADリクエストの結果として取得可能なものなので、 このような名前にしている.

Fields

approximate_data_size: u32

データサイズの近似値(バイト単位).

実際のデータサイズに管理用のメタ情報を追加した上で、 次のブロックサイズ境界への切り上げたサイズ、となるため、 最大でストレージのブロックサイズ二つ分だけ、 実際よりも大きな値となることがある.

なお、対象lumpのデータがジャーナル領域に埋め込まれている場合には、 常に正確なサイズが返される.

Trait Implementations

impl Clone for LumpHeader[src]

impl Debug for LumpHeader[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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.