pub struct PinnedContentFile { /* private fields */ }Expand description
One opened regular-file revision retained independently of its pathname.
Cargo installs final artifacts by atomic replacement. Opening the artifact while the wrapper’s output lock is held pins that exact inode; a later pathname replacement cannot retarget this owner.
Implementations§
Source§impl PinnedContentFile
impl PinnedContentFile
Sourcepub fn source_path(&self) -> &Path
pub fn source_path(&self) -> &Path
Original pathname used to open this revision, for diagnostics and provenance. Consumers must use the pinned descriptor for bytes.
Auto Trait Implementations§
impl Freeze for PinnedContentFile
impl RefUnwindSafe for PinnedContentFile
impl Send for PinnedContentFile
impl Sync for PinnedContentFile
impl Unpin for PinnedContentFile
impl UnwindSafe for PinnedContentFile
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more