pub struct MacosSupervisorContract {
pub watch_pid: MacosSupervisorWatchPid,
pub kqueue_filter: MacosKqueueFilter,
pub kqueue_note: MacosKqueueNote,
pub registration_barrier: MacosSupervisorRegistrationBarrier,
pub race_guard: MacosSupervisorRaceGuard,
pub exit_action: MacosSupervisorExitAction,
pub kill_deadline: Duration,
}Expand description
Concrete macOS supervisor contract for Phase 5 process-tree cleanup.
Fields§
§watch_pid: MacosSupervisorWatchPidPID that the supervisor child watches.
kqueue_filter: MacosKqueueFilterkqueue filter registered by the supervisor.
kqueue_note: MacosKqueueNotekqueue note that reports broker exit.
registration_barrier: MacosSupervisorRegistrationBarrierStartup barrier before the backend endpoint can be published.
race_guard: MacosSupervisorRaceGuardRace guard after kqueue registration.
exit_action: MacosSupervisorExitActionAction the supervisor performs after observing broker exit.
kill_deadline: DurationRequired cleanup deadline after broker exit.
Implementations§
Source§impl MacosSupervisorContract
impl MacosSupervisorContract
Sourcepub const fn kqueue_filter_name(&self) -> &'static str
pub const fn kqueue_filter_name(&self) -> &'static str
Return the kqueue filter syscall name.
Sourcepub const fn kqueue_note_name(&self) -> &'static str
pub const fn kqueue_note_name(&self) -> &'static str
Return the kqueue note syscall name.
Sourcepub const fn termination_signal_name(&self) -> &'static str
pub const fn termination_signal_name(&self) -> &'static str
Return the supervisor termination signal name.
Trait Implementations§
Source§impl Clone for MacosSupervisorContract
impl Clone for MacosSupervisorContract
Source§fn clone(&self) -> MacosSupervisorContract
fn clone(&self) -> MacosSupervisorContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MacosSupervisorContract
Source§impl Debug for MacosSupervisorContract
impl Debug for MacosSupervisorContract
impl Eq for MacosSupervisorContract
Source§impl PartialEq for MacosSupervisorContract
impl PartialEq for MacosSupervisorContract
Source§fn eq(&self, other: &MacosSupervisorContract) -> bool
fn eq(&self, other: &MacosSupervisorContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MacosSupervisorContract
Auto Trait Implementations§
impl Freeze for MacosSupervisorContract
impl RefUnwindSafe for MacosSupervisorContract
impl Send for MacosSupervisorContract
impl Sync for MacosSupervisorContract
impl Unpin for MacosSupervisorContract
impl UnsafeUnpin for MacosSupervisorContract
impl UnwindSafe for MacosSupervisorContract
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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