pub struct ReportForwarder { /* private fields */ }Expand description
Thread-safe native-report callback forwarding.
A forwarder can be cloned and inspected from any thread. Its handler can run
on a TSDuck worker thread or, when synchronous logging is enabled, on the
producer thread; it must perform bounded non-blocking work. A panic is
contained, discards that message, and becomes visible through
Self::take_error.
The callback receives a validated Severity and a decoded message. TSDuck’s
callback ABI has no userdata, so a process can have only one active
forwarding destination. Multiple reports may share it by cloning the same
forwarder; Report::asynchronous_with_forwarder rejects a different
forwarder until every report using the active one is terminated or dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReportForwarder
impl !UnwindSafe for ReportForwarder
impl Freeze for ReportForwarder
impl Send for ReportForwarder
impl Sync for ReportForwarder
impl Unpin for ReportForwarder
impl UnsafeUnpin for ReportForwarder
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