#[non_exhaustive]pub enum CaError {
NoCaDescriptor {
program_number: u16,
},
Io(Error),
Cat(Error),
}Expand description
Errors from the managed CAS-layer API (Driver::add_service and friends,
#763).
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.
NoCaDescriptor
The PMT carries no CA_descriptor (ETSI EN 300 468 §6.2.16, tag
0x09) at programme or elementary-stream level — there is nothing for
the CAM to descramble, so no ca_pmt is built or sent.
Io(Error)
Sending the built ca_pmt to the device failed.
Cat(Error)
The CAT’s descriptor loop (ISO/IEC 13818-1 §2.4.4.5) carried a
truncated CA_descriptor (EN 300 468 §6.2.16) — Driver::set_cat
could not extract the CAID/EMM-PID map.
Trait Implementations§
Source§impl Error for CaError
impl Error for CaError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for CaError
impl !UnwindSafe for CaError
impl Freeze for CaError
impl Send for CaError
impl Sync for CaError
impl Unpin for CaError
impl UnsafeUnpin for CaError
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