Struct nix_cache_watcher::nix::NixConfiguration
source · [−]pub struct NixConfiguration {
pub store_path: PathBuf,
}Expand description
Configuration needed to interact with Nix properly
The Default provided value for this type is as follows:
use nix_cache_watcher::nix::NixConfiguration;
let configuration = NixConfiguration {
store_path: "/nix/store".into(),
};
assert_eq!(configuration, NixConfiguration::default())Fields
store_path: PathBufThe path to the nix store
Trait Implementations
sourceimpl Clone for NixConfiguration
impl Clone for NixConfiguration
sourcefn clone(&self) -> NixConfiguration
fn clone(&self) -> NixConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for NixConfiguration
impl Debug for NixConfiguration
sourceimpl Decode for NixConfiguration
impl Decode for NixConfiguration
sourceimpl Default for NixConfiguration
impl Default for NixConfiguration
sourceimpl Encode for NixConfiguration
impl Encode for NixConfiguration
sourceimpl PartialEq<NixConfiguration> for NixConfiguration
impl PartialEq<NixConfiguration> for NixConfiguration
sourcefn eq(&self, other: &NixConfiguration) -> bool
fn eq(&self, other: &NixConfiguration) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Eq for NixConfiguration
impl StructuralEq for NixConfiguration
impl StructuralPartialEq for NixConfiguration
Auto Trait Implementations
impl RefUnwindSafe for NixConfiguration
impl Send for NixConfiguration
impl Sync for NixConfiguration
impl Unpin for NixConfiguration
impl UnwindSafe for NixConfiguration
Blanket Implementations
sourceimpl<'de, T> BorrowDecode<'de> for Twhere
T: Decode,
impl<'de, T> BorrowDecode<'de> for Twhere
T: Decode,
sourcefn borrow_decode<D>(decoder: &mut D) -> Result<T, DecodeError>where
D: Decoder,
fn borrow_decode<D>(decoder: &mut D) -> Result<T, DecodeError>where
D: Decoder,
Attempt to decode this type with the given BorrowDecode.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn 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>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more