pub struct HookOrdering {
pub phase: HookOrderingPhase,
pub order: i32,
}Expand description
Describes the hook ordering portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§phase: HookOrderingPhasePhase used by this record or request.
order: i32Order used by this record or request.
Implementations§
Source§impl HookOrdering
impl HookOrdering
Sourcepub fn early(order: i32) -> Self
pub fn early(order: i32) -> Self
Returns an updated package::hooks value with early applied. This is data construction only and does not execute the configured behavior.
Trait Implementations§
Source§impl Clone for HookOrdering
impl Clone for HookOrdering
Source§fn clone(&self) -> HookOrdering
fn clone(&self) -> HookOrdering
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 HookOrdering
impl Debug for HookOrdering
Source§impl<'de> Deserialize<'de> for HookOrdering
impl<'de> Deserialize<'de> for HookOrdering
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HookOrdering
impl PartialEq for HookOrdering
Source§fn eq(&self, other: &HookOrdering) -> bool
fn eq(&self, other: &HookOrdering) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HookOrdering
impl Serialize for HookOrdering
impl Eq for HookOrdering
impl StructuralPartialEq for HookOrdering
Auto Trait Implementations§
impl Freeze for HookOrdering
impl RefUnwindSafe for HookOrdering
impl Send for HookOrdering
impl Sync for HookOrdering
impl Unpin for HookOrdering
impl UnsafeUnpin for HookOrdering
impl UnwindSafe for HookOrdering
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