Struct io_ranges::Metadata[][src]

pub struct Metadata { /* fields omitted */ }

Metadata information about a range.

This is somewhat analogous to std::fs::Metadata, however it only includes a few fields, since ranges are more abstract than files.

Implementations

impl Metadata[src]

#[must_use]pub const fn len(&self) -> u64[src]

Returns the size of the range, in bytes, this metadata is for.

#[must_use]pub const fn blksize(&self) -> u64[src]

Returns the block size for I/O.

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, 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.