pub struct PatchStatus {
pub name: String,
pub dir: PathBuf,
pub base: Option<String>,
pub locked: Option<String>,
pub in_use: bool,
}Expand description
Where a patched dependency stands after an install: whether the copy is what the dependency resolves from, and the two revisions the answer rests on.
in_use is false when the directory is gone, when the lockfile records no base for it,
or when the pin has moved on from that base — the dependency then resolves to the
upstream revision, and the copy sits in the tree unused until it is refreshed or
removed. See Project::patch_status.
Fields§
§name: StringThe [deps] key the patched dependency is declared under.
dir: PathBufThe copy in the tree, absolute — reported whether or not it is in_use,
since “the directory is there and nothing reads it” is the finding worth printing.
base: Option<String>The revision the copy was taken from (patch_base), when the lockfile has one.
locked: Option<String>The revision the pin resolves to, as the last install recorded it.
in_use: boolWhether the copy is what the dependency resolves from. False when the directory is
gone, when there is no recorded base, or when base and locked have diverged —
the three ways a patch stops being the thing in use, told apart by the two fields
above rather than by a second enum.
Trait Implementations§
Source§impl Clone for PatchStatus
impl Clone for PatchStatus
Source§fn clone(&self) -> PatchStatus
fn clone(&self) -> PatchStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PatchStatus
impl RefUnwindSafe for PatchStatus
impl Send for PatchStatus
impl Sync for PatchStatus
impl Unpin for PatchStatus
impl UnsafeUnpin for PatchStatus
impl UnwindSafe for PatchStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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