#[non_exhaustive]pub struct TearDownError<S, P> {
pub sink: SinkClear<S>,
pub scrambler: Option<P>,
pub output: Option<P>,
}Expand description
A tear-down in which at least one PHY step failed. Every step was still attempted, so a failed scrambler call does not leave the output running; each field holds the first failure of its step.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sink: SinkClear<S>What became of the sink.
scrambler: Option<P>set_scrambling(false) failed with this error.
output: Option<P>stop_output failed with this error; None: the output is stopped.
Trait Implementations§
Source§impl<S, P> Clone for TearDownError<S, P>
impl<S, P> Clone for TearDownError<S, P>
Source§fn clone(&self) -> TearDownError<S, P>
fn clone(&self) -> TearDownError<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 TearDownError<S, P>
Source§impl<S, P> Debug for TearDownError<S, P>
impl<S, P> Debug for TearDownError<S, P>
Source§impl<S, P> Display for TearDownError<S, P>where
P: Debug,
impl<S, P> Display for TearDownError<S, P>where
P: Debug,
impl<S, P> Eq for TearDownError<S, P>
Source§impl<S, P> Error for TearDownError<S, P>
Its failures are the PHY’s, which are only Debug, so it has no source.
impl<S, P> Error for TearDownError<S, P>
Its failures are the PHY’s, which are only Debug, so it has no source.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<S, P> PartialEq for TearDownError<S, P>
impl<S, P> PartialEq for TearDownError<S, P>
impl<S, P> StructuralPartialEq for TearDownError<S, P>
Auto Trait Implementations§
impl<S, P> Forget for TearDownError<S, P>
impl<S, P> Freeze for TearDownError<S, P>
impl<S, P> Move for TearDownError<S, P>
impl<S, P> RefUnwindSafe for TearDownError<S, P>
impl<S, P> Send for TearDownError<S, P>
impl<S, P> Sync for TearDownError<S, P>
impl<S, P> Unpin for TearDownError<S, P>
impl<S, P> UnsafeUnpin for TearDownError<S, P>
impl<S, P> UnwindSafe for TearDownError<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