pub enum CaptureError {
Encode(EncodeError),
Submit(SubmitError),
Halted,
}Expand description
Errors returned by BusCaptureAdapter::capture.
Each variant maps to a SPEC-named failure mode at the dispatch boundary; the kernel’s
fail-stop callback is the system response to CaptureError::Submit and
CaptureError::Halted.
Variants§
Encode(EncodeError)
The encoder rejected the message.
Submit(SubmitError)
The writer rejected the submit.
The adapter halt callback has fired before this error returns, so the kernel fail-stop path is already in motion when the caller observes it.
Halted
A prior capture observed a writer failure and the adapter has fail-stopped.
The halt callback fired on the original failure; subsequent captures short-circuit without re-entering the writer to keep the no-drop contract intact (a stuck or closed writer must not silently swallow captures).
Trait Implementations§
Source§impl Debug for CaptureError
impl Debug for CaptureError
Source§impl Display for CaptureError
impl Display for CaptureError
Source§impl Error for CaptureError
impl Error for CaptureError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<EncodeError> for CaptureError
impl From<EncodeError> for CaptureError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Source§impl From<SubmitError> for CaptureError
impl From<SubmitError> for CaptureError
Source§fn from(source: SubmitError) -> Self
fn from(source: SubmitError) -> Self
Auto Trait Implementations§
impl Freeze for CaptureError
impl RefUnwindSafe for CaptureError
impl Send for CaptureError
impl Sync for CaptureError
impl Unpin for CaptureError
impl UnsafeUnpin for CaptureError
impl UnwindSafe for CaptureError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more