[][src]Struct spirit_daemonize::Daemonize

pub struct Daemonize { /* fields omitted */ }

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]

impl<O, C> Installer<Daemonize, O, C> for DaemonizeInstaller[src]

type UninstallHandle = ()

A handle representing lifetime of the resource. Read more

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.