pub struct RegistrySrc {
pub encoded_registry_name: InternedString,
pub package_dir: InternedString,
pub size: Option<u64>,
}
Expand description
The key for a registry src directory entry stored in the database.
Fields§
§encoded_registry_name: InternedString
A unique name of the registry source.
package_dir: InternedString
The directory name of the extracted source, like foo-1.2.3
.
size: Option<u64>
Total size of the src directory in bytes.
This can be None when the size is unknown. For example, when the src
directory already exists on disk, and we just want to update the
last-use timestamp. We don’t want to take the expense of computing disk
usage unless necessary. GlobalCacheTracker::populate_untracked
will handle any actual NULL values in the database, which can happen
when the src directory is created by an older version of cargo that
did not track sizes.
Trait Implementations§
Source§impl Clone for RegistrySrc
impl Clone for RegistrySrc
Source§fn clone(&self) -> RegistrySrc
fn clone(&self) -> RegistrySrc
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RegistrySrc
impl Debug for RegistrySrc
Source§impl Hash for RegistrySrc
impl Hash for RegistrySrc
Source§impl PartialEq for RegistrySrc
impl PartialEq for RegistrySrc
impl Eq for RegistrySrc
impl StructuralPartialEq for RegistrySrc
Auto Trait Implementations§
impl Freeze for RegistrySrc
impl RefUnwindSafe for RegistrySrc
impl Send for RegistrySrc
impl Sync for RegistrySrc
impl Unpin for RegistrySrc
impl UnwindSafe for RegistrySrc
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes