Skip to main content

OpenedFile

Struct OpenedFile 

Source
pub(crate) struct OpenedFile {
    pub(crate) path: String,
    pub(crate) cached_content: Option<Vec<u8>>,
    pub(crate) read_spill: Option<Vec<u8>>,
    pub(crate) bulk_base: u64,
    pub(crate) bulk_len: usize,
    pub(crate) opened_at: (i64, u32),
    pub(crate) accessed_at: (i64, u32),
}

Fields§

§path: String§cached_content: Option<Vec<u8>>§read_spill: Option<Vec<u8>>§bulk_base: u64

Server-side base of the optional bulk ring (0 = none).

§bulk_len: usize§opened_at: (i64, u32)

(sec, nsec) when the handle was opened (reported as ctime).

§accessed_at: (i64, u32)

(sec, nsec) of the last read / readdir (reported as atime).

Implementations§

Source§

impl OpenedFile

Source

pub(crate) fn new(path: &str) -> Self

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.