pub struct ArtifactPaths {
pub socket: SocketLocation,
pub pid_file: PathBuf,
pub db: PathBuf,
pub data_dir: PathBuf,
pub emergency_reserve: PathBuf,
pub emergency_reserve_bytes: u64,
pub service_definition_dir: PathBuf,
pub shadow_dir: PathBuf,
}Expand description
Every expected daemon artifact location. Fully injectable for tests;
Self::from_environment derives the real platform locations without
creating any directory.
Fields§
§socket: SocketLocationDaemon IPC endpoint.
pid_file: PathBufDaemon pid/identity file.
db: PathBufSQLite registry database.
data_dir: PathBufDaemon data directory (scanned for log files).
emergency_reserve: PathBufENOSPC emergency reserve file (#390).
emergency_reserve_bytes: u64Expected byte size of a fully-armed reserve.
service_definition_dir: PathBufService-definition directory (*.servicedef, #364).
shadow_dir: PathBufShadow-copy directory for relocated daemon binaries.
Implementations§
Source§impl ArtifactPaths
impl ArtifactPaths
Sourcepub fn from_environment(scope_hash: Option<&str>) -> Self
pub fn from_environment(scope_hash: Option<&str>) -> Self
Derive every expected location from the environment, read-only.
Trait Implementations§
Source§impl Clone for ArtifactPaths
impl Clone for ArtifactPaths
Source§fn clone(&self) -> ArtifactPaths
fn clone(&self) -> ArtifactPaths
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ArtifactPaths
impl RefUnwindSafe for ArtifactPaths
impl Send for ArtifactPaths
impl Sync for ArtifactPaths
impl Unpin for ArtifactPaths
impl UnsafeUnpin for ArtifactPaths
impl UnwindSafe for ArtifactPaths
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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