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