[−][src]Struct spirit_daemonize::Daemonize
Intermediate plumbing type.
This is passed through the Pipeline
as a way of signalling the next
actions. Users are not expected to interact directly with this.
Implementations
impl Daemonize
[src]
pub fn daemonize(&self) -> Result<(), AnyError>
[src]
Goes into background according to the configuration.
This does the actual work of daemonization. This can be used manually.
This is not expected to fail in practice, as all checks are performed in advance. It can fail for rare race conditions (eg. the directory where the PID file should go disappears between the check and now) or if there are not enough PIDs available to fork.
Trait Implementations
impl Clone for Daemonize
[src]
impl Debug for Daemonize
[src]
impl Eq for Daemonize
[src]
impl Hash for Daemonize
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<O, C> Installer<Daemonize, O, C> for DaemonizeInstaller
[src]
type UninstallHandle = ()
A handle representing lifetime of the resource. Read more
fn install(&mut self, daemonize: Daemonize, _: &str)
[src]
fn init<B>(
&mut self,
builder: B,
_name: &'static str
) -> Result<B, Box<dyn Error + 'static + Sync + Send>> where
B: Extensible<Opts = O, Config = C, Ok = B>,
<B as Extensible>::Config: DeserializeOwned,
<B as Extensible>::Config: Send,
<B as Extensible>::Config: Sync,
<B as Extensible>::Config: 'static,
<B as Extensible>::Opts: StructOpt,
<B as Extensible>::Opts: Send,
<B as Extensible>::Opts: Sync,
<B as Extensible>::Opts: 'static,
[src]
&mut self,
builder: B,
_name: &'static str
) -> Result<B, Box<dyn Error + 'static + Sync + Send>> where
B: Extensible<Opts = O, Config = C, Ok = B>,
<B as Extensible>::Config: DeserializeOwned,
<B as Extensible>::Config: Send,
<B as Extensible>::Config: Sync,
<B as Extensible>::Config: 'static,
<B as Extensible>::Opts: StructOpt,
<B as Extensible>::Opts: Send,
<B as Extensible>::Opts: Sync,
<B as Extensible>::Opts: 'static,
impl PartialEq<Daemonize> for Daemonize
[src]
impl StructuralEq for Daemonize
[src]
impl StructuralPartialEq for Daemonize
[src]
Auto Trait Implementations
impl RefUnwindSafe for Daemonize
impl Send for Daemonize
impl Sync for Daemonize
impl Unpin for Daemonize
impl UnwindSafe for Daemonize
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,