pub struct ResolvedFile<A, O> { /* private fields */ }Expand description
One file resolved and authenticated by a specific pinned reader.
The private record and reader borrow make cross-generation use impossible.
Implementations§
Source§impl<A, O> ResolvedFile<A, O>
impl<A, O> ResolvedFile<A, O>
Sourcepub const fn description(&self) -> &FileDescription
pub const fn description(&self) -> &FileDescription
Public semantic facts authenticated with this handle.
Source§impl<A: AsyncAuthorityStore, O: AsyncObjectStore> ResolvedFile<A, O>
impl<A: AsyncAuthorityStore, O: AsyncObjectStore> ResolvedFile<A, O>
Sourcepub async fn read_range(
&self,
range: ByteRange,
budget: WorkBudget,
cancellation: &CancellationToken,
) -> FsResult<FileRangeRead>
pub async fn read_range( &self, range: ByteRange, budget: WorkBudget, cancellation: &CancellationToken, ) -> FsResult<FileRangeRead>
Reads one logical regular-file range without another namespace lookup.
Sourcepub async fn read_symbolic_link(
&self,
budget: WorkBudget,
cancellation: &CancellationToken,
) -> FsResult<Bytes>
pub async fn read_symbolic_link( &self, budget: WorkBudget, cancellation: &CancellationToken, ) -> FsResult<Bytes>
Reads opaque symbolic-link target bytes without another namespace lookup.
Sourcepub async fn plan_extents(
&self,
range: ByteRange,
maximum_spans: u32,
budget: WorkBudget,
cancellation: &CancellationToken,
) -> FsResult<Option<ExtentPlan>>
pub async fn plan_extents( &self, range: ByteRange, maximum_spans: u32, budget: WorkBudget, cancellation: &CancellationToken, ) -> FsResult<Option<ExtentPlan>>
Plans sparse physical spans without another namespace lookup.
Auto Trait Implementations§
impl<A, O> !RefUnwindSafe for ResolvedFile<A, O>
impl<A, O> !UnwindSafe for ResolvedFile<A, O>
impl<A, O> Freeze for ResolvedFile<A, O>where
PinnedReader<A, O>: Freeze,
impl<A, O> Send for ResolvedFile<A, O>where
PinnedReader<A, O>: Send,
impl<A, O> Sync for ResolvedFile<A, O>where
PinnedReader<A, O>: Sync,
impl<A, O> Unpin for ResolvedFile<A, O>where
PinnedReader<A, O>: Unpin,
impl<A, O> UnsafeUnpin for ResolvedFile<A, O>where
PinnedReader<A, O>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request