pub struct Options {
pub idle_exit: Option<Duration>,
pub connect: Connector,
pub notify: bool,
pub signals: bool,
}Fields§
§idle_exit: Option<Duration>Exit after this long without a connected client; None never idles out.
connect: Connector§notify: boolSends desktop notifications; tests turn it off.
signals: boolStops on SIGTERM and SIGINT as on daemon stop; tests, which run many daemons in one process, turn it off.
Implementations§
Source§impl Options
impl Options
pub fn foreground() -> Options
pub fn auto_started(idle: Duration) -> Options
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl !UnwindSafe for Options
impl Freeze for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
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