pub struct HookDescriptor {
pub phase: HookPhase,
pub name: String,
pub order: u32,
}Expand description
Declarative descriptor of one lifecycle hook: its phase, its stable name, and its module-local order within that phase.
Fields§
§phase: HookPhaseThe phase this hook runs in.
name: StringStable hook name (unique within its phase, per module).
order: u32Module-local order within the phase; smaller runs first. The global schedule breaks ties across modules by module id, so independently authored modules never need to coordinate order numbers.
Implementations§
Trait Implementations§
Source§impl Clone for HookDescriptor
impl Clone for HookDescriptor
Source§fn clone(&self) -> HookDescriptor
fn clone(&self) -> HookDescriptor
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 moreSource§impl Debug for HookDescriptor
impl Debug for HookDescriptor
impl Eq for HookDescriptor
Source§impl PartialEq for HookDescriptor
impl PartialEq for HookDescriptor
Source§fn eq(&self, other: &HookDescriptor) -> bool
fn eq(&self, other: &HookDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HookDescriptor
impl Serialize for HookDescriptor
impl StructuralPartialEq for HookDescriptor
Auto Trait Implementations§
impl Freeze for HookDescriptor
impl RefUnwindSafe for HookDescriptor
impl Send for HookDescriptor
impl Sync for HookDescriptor
impl Unpin for HookDescriptor
impl UnsafeUnpin for HookDescriptor
impl UnwindSafe for HookDescriptor
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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