pub struct ForegroundWait(/* private fields */);Expand description
How long a terminal call waits in the foreground before a still-running
command promotes to a background task.
The window is a normal one plus an optional longer one that applies while it is held. Every clone shares both, so a terminal, the terminals derived from it and a host that lengthens the window while the machine is loaded all see one setting; a change applies to the next foreground wait.
Implementations§
Source§impl ForegroundWait
impl ForegroundWait
Sourcepub fn set_normal(&self, normal: Duration)
pub fn set_normal(&self, normal: Duration)
Changes the normal window for every handle.
Sourcepub fn extend(&self, window: Duration)
pub fn extend(&self, window: Duration)
Puts a longer window in force until Self::restore. A zero
window leaves the normal one in force.
Trait Implementations§
Source§impl Clone for ForegroundWait
impl Clone for ForegroundWait
Auto Trait Implementations§
impl Forget for ForegroundWait
impl Freeze for ForegroundWait
impl Move for ForegroundWait
impl RefUnwindSafe for ForegroundWait
impl Send for ForegroundWait
impl Sync for ForegroundWait
impl Unpin for ForegroundWait
impl UnsafeUnpin for ForegroundWait
impl UnwindSafe for ForegroundWait
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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