[][src]Struct rscache::sec::Sector

pub struct Sector<'a> {
    pub header: SectorHeader,
    pub data_block: &'a [u8],
}

Sector data for reading.

Fields

header: SectorHeaderdata_block: &'a [u8]

Implementations

impl<'a> Sector<'a>[src]

pub fn new(buffer: &'a [u8], expanded_header: bool) -> Result<Self>[src]

Decodes the buffer from the reference table into a Sector.

Trait Implementations

impl<'a> Clone for Sector<'a>[src]

impl<'a> Debug for Sector<'a>[src]

impl<'a> Default for Sector<'a>[src]

impl<'a> Eq for Sector<'a>[src]

impl<'a> Hash for Sector<'a>[src]

impl<'a> Ord for Sector<'a>[src]

impl<'a> PartialEq<Sector<'a>> for Sector<'a>[src]

impl<'a> PartialOrd<Sector<'a>> for Sector<'a>[src]

impl<'a> StructuralEq for Sector<'a>[src]

impl<'a> StructuralPartialEq for Sector<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Sector<'a>

impl<'a> Send for Sector<'a>

impl<'a> Sync for Sector<'a>

impl<'a> Unpin for Sector<'a>

impl<'a> UnwindSafe for Sector<'a>

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.