rustduck-core 1.1.0

Safe typed TSDuck core bindings for rustduck
Documentation
//! Structured endpoint failures from the private callback protocol.

/// A structured failure observed in the private TSDuck `memory` callback path.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum CallbackError {
    /// The event did not originate from the TSDuck `memory` plugin.
    WrongPlugin,
    /// The native event supplied an invalid plugin name buffer.
    InvalidPluginName,
    /// The event direction did not match the endpoint type.
    InvalidEventDirection,
    /// The native event buffer was null or had an inconsistent size relation.
    InvalidEventBuffer,
    /// The event byte count was not a multiple of 188 bytes.
    InvalidPacketAlignment,
    /// The endpoint queue was aborted while a callback was being routed.
    QueueAborted,
    /// Native writeback of an input payload failed.
    NativeWritebackFailure,
    /// Rust panicked while processing the callback and was contained.
    Panic,
}