#[non_exhaustive]pub enum Notification {
CamReady,
ApplicationInfo {
application_type: u8,
manufacturer: u16,
code: u16,
menu: String,
},
CaInfo {
ca_system_ids: Vec<u16>,
},
CaPmtReply {
program_number: u16,
descrambling_ok: bool,
},
Mmi(MmiEvent),
SessionOpened {
resource: ResourceId,
},
SessionClosed {
session_nb: u16,
},
Error {
detail: String,
},
}Expand description
A host-facing event surfaced by the stack (the useful outputs of a CI session — what an application reacts to).
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.
CamReady
The module is present and the resource-manager handshake completed.
ApplicationInfo
application_information was received.
Fields
The decoded menu string.
CaInfo
ca_info was received — the CA system ids the module supports.
CaPmtReply
A ca_pmt_reply was received for a prior CA_PMT.
Fields
Mmi(MmiEvent)
An MMI menu/enquiry the host should display.
SessionOpened
A session for resource was opened.
Fields
§
resource: ResourceIdThe resource the session serves.
SessionClosed
A session closed.
Error
A protocol error surfaced by the stack (non-fatal; informational).
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
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 moreSource§impl Debug for Notification
impl Debug for Notification
impl Eq for Notification
Source§impl PartialEq for Notification
impl PartialEq for Notification
Source§fn eq(&self, other: &Notification) -> bool
fn eq(&self, other: &Notification) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnsafeUnpin for Notification
impl UnwindSafe for Notification
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