pub struct ProcessStartArgs {
pub next_handlers_count: usize,
pub yield_count: u16,
/* private fields */
}
Expand description
Arguments for on_process_start
handlers.
Empty in this release.
Fields§
§next_handlers_count: usize
Number of start handlers yet to run.
yield_count: u16
Number of times this handler has yielded.
If this exceeds 32 times the handler is ignored.
Implementations§
source§impl ProcessStartArgs
impl ProcessStartArgs
sourcepub const MAX_YIELD_COUNT: u16 = 32u16
pub const MAX_YIELD_COUNT: u16 = 32u16
Yield requests after this are ignored.
sourcepub fn yield_once(&self)
pub fn yield_once(&self)
Let other process start handlers run first.
The handler must call this if it takes over the process and it cannot determinate if it should from the environment.
Auto Trait Implementations§
impl !Freeze for ProcessStartArgs
impl RefUnwindSafe for ProcessStartArgs
impl Send for ProcessStartArgs
impl Sync for ProcessStartArgs
impl Unpin for ProcessStartArgs
impl UnwindSafe for ProcessStartArgs
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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