Struct roles_logic_sv2::routing_logic::NoRouting
source · pub struct NoRouting();
Expand description
NoRouting Router used when RoutingLogic::None
and MiningRoutingLogic::None
are needed.
It implements both CommonRouter
and MiningRouter
, and panics if used as an actual router. The
only purpose of NoRouting
is a marker trait for when RoutingLogic::None
and MiningRoutingLogic::None
Trait Implementations§
source§impl CommonRouter for NoRouting
impl CommonRouter for NoRouting
fn on_setup_connection( &mut self, _: &SetupConnection<'_> ) -> Result<(CommonDownstreamData, SetupConnectionSuccess), Error>
source§impl<Down: IsMiningDownstream + D, Up: IsMiningUpstream<Down, NullDownstreamMiningSelector> + D> MiningRouter<Down, Up, NullDownstreamMiningSelector> for NoRouting
impl<Down: IsMiningDownstream + D, Up: IsMiningUpstream<Down, NullDownstreamMiningSelector> + D> MiningRouter<Down, Up, NullDownstreamMiningSelector> for NoRouting
fn on_open_standard_channel( &mut self, _downstream: Arc<Mutex<Down>>, _request: &mut OpenStandardMiningChannel<'_>, _downstream_mining_data: &CommonDownstreamData ) -> Result<Arc<Mutex<Up>>, Error>
fn on_open_standard_channel_success( &mut self, _upstream: Arc<Mutex<Up>>, _request: &mut OpenStandardMiningChannelSuccess<'_> ) -> Result<Arc<Mutex<Down>>, Error>
Auto Trait Implementations§
impl Freeze for NoRouting
impl RefUnwindSafe for NoRouting
impl Send for NoRouting
impl Sync for NoRouting
impl Unpin for NoRouting
impl UnwindSafe for NoRouting
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