pub enum RouterTxHandlerFn {
Packed(Arc<dyn Fn(&[u8]) -> TelemetryResult<()> + Send + Sync + 'static>),
Packet(Arc<dyn Fn(&Packet) -> TelemetryResult<()> + Send + Sync + 'static>),
}Expand description
TX handler for a router side: either packed or packet-based.
Variants§
Packed(Arc<dyn Fn(&[u8]) -> TelemetryResult<()> + Send + Sync + 'static>)
Packet(Arc<dyn Fn(&Packet) -> TelemetryResult<()> + Send + Sync + 'static>)
Trait Implementations§
Source§impl Clone for RouterTxHandlerFn
impl Clone for RouterTxHandlerFn
Source§fn clone(&self) -> RouterTxHandlerFn
fn clone(&self) -> RouterTxHandlerFn
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for RouterTxHandlerFn
impl !UnwindSafe for RouterTxHandlerFn
impl Freeze for RouterTxHandlerFn
impl Send for RouterTxHandlerFn
impl Sync for RouterTxHandlerFn
impl Unpin for RouterTxHandlerFn
impl UnsafeUnpin for RouterTxHandlerFn
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