pub struct SignalProcessor { /* private fields */ }Expand description
Signal processor for handling CDC signals.
Implementations§
Source§impl SignalProcessor
impl SignalProcessor
Sourcepub fn stats(&self) -> &Arc<SignalStats>
pub fn stats(&self) -> &Arc<SignalStats>
Get statistics.
Sourcepub async fn register_handler<F, Fut>(&self, action: &str, handler: F)
pub async fn register_handler<F, Fut>(&self, action: &str, handler: F)
Register a custom handler for an action.
Sourcepub async fn set_enabled_sources(&self, sources: Vec<SignalSource>)
pub async fn set_enabled_sources(&self, sources: Vec<SignalSource>)
Set enabled signal sources.
Sourcepub async fn is_source_enabled(&self, source: &SignalSource) -> bool
pub async fn is_source_enabled(&self, source: &SignalSource) -> bool
Check if signal source is enabled.
Sourcepub async fn process(&self, signal: Signal) -> SignalResult
pub async fn process(&self, signal: Signal) -> SignalResult
Process a signal.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SignalProcessor
impl !RefUnwindSafe for SignalProcessor
impl Send for SignalProcessor
impl Sync for SignalProcessor
impl Unpin for SignalProcessor
impl UnsafeUnpin for SignalProcessor
impl !UnwindSafe for SignalProcessor
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