#[non_exhaustive]pub enum CallbackError {
WrongPlugin,
InvalidPluginName,
InvalidEventDirection,
InvalidEventBuffer,
InvalidPacketAlignment,
QueueAborted,
NativeWritebackFailure,
Panic,
}Expand description
A structured failure observed in the private TSDuck memory callback path.
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.
WrongPlugin
The event did not originate from the TSDuck memory plugin.
InvalidPluginName
The native event supplied an invalid plugin name buffer.
InvalidEventDirection
The event direction did not match the endpoint type.
InvalidEventBuffer
The native event buffer was null or had an inconsistent size relation.
InvalidPacketAlignment
The event byte count was not a multiple of 188 bytes.
QueueAborted
The endpoint queue was aborted while a callback was being routed.
NativeWritebackFailure
Native writeback of an input payload failed.
Panic
Rust panicked while processing the callback and was contained.
Trait Implementations§
Source§impl Clone for CallbackError
impl Clone for CallbackError
impl Copy for CallbackError
Source§impl Debug for CallbackError
impl Debug for CallbackError
impl Eq for CallbackError
Source§impl PartialEq for CallbackError
impl PartialEq for CallbackError
impl StructuralPartialEq for CallbackError
Auto Trait Implementations§
impl Freeze for CallbackError
impl RefUnwindSafe for CallbackError
impl Send for CallbackError
impl Sync for CallbackError
impl Unpin for CallbackError
impl UnsafeUnpin for CallbackError
impl UnwindSafe for CallbackError
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