pub struct Service {
pub name: &'static str,
pub version: &'static str,
pub run_context: RunContext,
}Fields§
§name: &'static strThe service name — one of dig-node, dig-dns, dig-updater, … . Names the log subdir.
version: &'static strThe binary’s semver, stamped on every record (typically env!("CARGO_PKG_VERSION")).
run_context: RunContextWhether this is an OS-service run or an interactive CLI run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl UnwindSafe for Service
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