#[non_exhaustive]pub enum BringUpOutcome<S, P> {
Up(LinkUp<S>),
#[non_exhaustive] Cancelled {
at: CancelPoint,
cleanup: Cleanup<S, P>,
warnings: Warnings<S>,
},
}Expand description
How a bring-up ended without an error.
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.
Up(LinkUp<S>)
The link is up.
#[non_exhaustive]Cancelled
The caller’s cancel flag stopped the attempt. Never a failure.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
at: CancelPointWhere the flag was seen.
§
cleanup: Cleanup<S, P>The tear-down that followed, whatever tear_down_on_error says;
Cleanup::Skipped for a flag seen at entry, before any I/O.
Trait Implementations§
Source§impl<S, P> Clone for BringUpOutcome<S, P>
impl<S, P> Clone for BringUpOutcome<S, P>
Source§fn clone(&self) -> BringUpOutcome<S, P>
fn clone(&self) -> BringUpOutcome<S, P>
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 moreimpl<S, P> Copy for BringUpOutcome<S, P>
Source§impl<S, P> Debug for BringUpOutcome<S, P>
impl<S, P> Debug for BringUpOutcome<S, P>
impl<S, P> Eq for BringUpOutcome<S, P>
Source§impl<S, P> PartialEq for BringUpOutcome<S, P>
impl<S, P> PartialEq for BringUpOutcome<S, P>
impl<S, P> StructuralPartialEq for BringUpOutcome<S, P>
Auto Trait Implementations§
impl<S, P> Forget for BringUpOutcome<S, P>
impl<S, P> Freeze for BringUpOutcome<S, P>
impl<S, P> Move for BringUpOutcome<S, P>
impl<S, P> RefUnwindSafe for BringUpOutcome<S, P>
impl<S, P> Send for BringUpOutcome<S, P>
impl<S, P> Sync for BringUpOutcome<S, P>
impl<S, P> Unpin for BringUpOutcome<S, P>
impl<S, P> UnsafeUnpin for BringUpOutcome<S, P>
impl<S, P> UnwindSafe for BringUpOutcome<S, P>
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