#[non_exhaustive]pub enum PostStartHook {
Hook(Box<ServiceHook>),
Unmodeled {
span: SourceSpan,
},
}Expand description
One authored post_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<ServiceHook>)
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 PostStartHook
impl PostStartHook
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete sequence-item span.
Trait Implementations§
Source§impl Clone for PostStartHook
impl Clone for PostStartHook
Source§fn clone(&self) -> PostStartHook
fn clone(&self) -> PostStartHook
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 PostStartHook
impl Debug for PostStartHook
impl Eq for PostStartHook
Source§impl PartialEq for PostStartHook
impl PartialEq for PostStartHook
impl StructuralPartialEq for PostStartHook
Auto Trait Implementations§
impl Freeze for PostStartHook
impl RefUnwindSafe for PostStartHook
impl Send for PostStartHook
impl Sync for PostStartHook
impl Unpin for PostStartHook
impl UnsafeUnpin for PostStartHook
impl UnwindSafe for PostStartHook
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