pub(crate) struct InitComponentArgs {
pub(crate) stage: String,
pub(crate) priority: u32,
pub(crate) depends_on: Vec<String>,
}Expand description
Parsed arguments for #[init_component(stage, priority = N, depends_on = fn_or_list)].
Fields§
§stage: String“Bootstrap” | “Kthread” | “Process” (PascalCase ready for quote!)
priority: u32Init priority: lower = earlier within the same topological level.
depends_on: Vec<String>Names of functions (same stage) that must run before this one.
Trait Implementations§
Source§impl Parse for InitComponentArgs
impl Parse for InitComponentArgs
Source§fn parse(input: ParseStream<'_>) -> Result<Self>
fn parse(input: ParseStream<'_>) -> Result<Self>
Performs the parse operation.
Auto Trait Implementations§
impl Freeze for InitComponentArgs
impl RefUnwindSafe for InitComponentArgs
impl Send for InitComponentArgs
impl Sync for InitComponentArgs
impl Unpin for InitComponentArgs
impl UnsafeUnpin for InitComponentArgs
impl UnwindSafe for InitComponentArgs
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