#[non_exhaustive]pub enum ReportForwarderError {
InvalidMessage,
InvalidSeverity {
severity: i32,
},
Panic,
}Expand description
An error contained while forwarding a native report callback.
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.
InvalidMessage
The native callback passed a null message pointer with a non-zero length, an odd byte length, or invalid UTF-16.
InvalidSeverity
TSDuck passed a severity value not represented by Severity.
Panic
The user callback panicked. The message was discarded.
Trait Implementations§
Source§impl Clone for ReportForwarderError
impl Clone for ReportForwarderError
impl Copy for ReportForwarderError
Source§impl Debug for ReportForwarderError
impl Debug for ReportForwarderError
impl Eq for ReportForwarderError
Source§impl PartialEq for ReportForwarderError
impl PartialEq for ReportForwarderError
impl StructuralPartialEq for ReportForwarderError
Auto Trait Implementations§
impl Freeze for ReportForwarderError
impl RefUnwindSafe for ReportForwarderError
impl Send for ReportForwarderError
impl Sync for ReportForwarderError
impl Unpin for ReportForwarderError
impl UnsafeUnpin for ReportForwarderError
impl UnwindSafe for ReportForwarderError
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