pub enum RelayTxHandlerFn {
Packed(Arc<dyn Fn(&[u8]) -> TelemetryResult<()> + Send + Sync + 'static>),
Packet(Arc<dyn Fn(&Packet) -> TelemetryResult<()> + Send + Sync + 'static>),
}Expand description
TX handler for a relay 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 RelayTxHandlerFn
impl Clone for RelayTxHandlerFn
Source§fn clone(&self) -> RelayTxHandlerFn
fn clone(&self) -> RelayTxHandlerFn
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 RelayTxHandlerFn
impl !UnwindSafe for RelayTxHandlerFn
impl Freeze for RelayTxHandlerFn
impl Send for RelayTxHandlerFn
impl Sync for RelayTxHandlerFn
impl Unpin for RelayTxHandlerFn
impl UnsafeUnpin for RelayTxHandlerFn
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