#[non_exhaustive]pub enum PreStartHook {
Hook(Box<PreStartServiceHook>),
Unmodeled {
span: SourceSpan,
},
}Expand description
One authored pre_start sequence item.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hook(Box<PreStartServiceHook>)
A valid or partially recovered hook mapping.
Unmodeled
A non-mapping item retained by source span.
Fields
§
span: SourceSpanComplete malformed-item span.
Implementations§
Source§impl PreStartHook
impl PreStartHook
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete sequence-item span.
Trait Implementations§
Source§impl Clone for PreStartHook
impl Clone for PreStartHook
Source§fn clone(&self) -> PreStartHook
fn clone(&self) -> PreStartHook
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 PreStartHook
impl Debug for PreStartHook
impl Eq for PreStartHook
Source§impl PartialEq for PreStartHook
impl PartialEq for PreStartHook
impl StructuralPartialEq for PreStartHook
Auto Trait Implementations§
impl Freeze for PreStartHook
impl RefUnwindSafe for PreStartHook
impl Send for PreStartHook
impl Sync for PreStartHook
impl Unpin for PreStartHook
impl UnsafeUnpin for PreStartHook
impl UnwindSafe for PreStartHook
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