pub enum TproxyMode {
Aggregated,
NonAggregated,
}Expand description
Defines the operational mode for Translator Proxy.
It can operate in two different modes that affect how Sv1 downstream connections are mapped to the upstream Sv2 channels.
Variants§
Aggregated
All Sv1 downstream connections share a single extended Sv2 channel. This mode uses extranonce_prefix allocation to distinguish between different downstream miners while presenting them as a single entity to the upstream server. This is more efficient for pools with many miners.
NonAggregated
Each Sv1 downstream connection gets its own dedicated extended Sv2 channel. This mode provides complete isolation between downstream connections but may be less efficient for large numbers of miners.
Trait Implementations§
Source§impl Clone for TproxyMode
impl Clone for TproxyMode
Source§fn clone(&self) -> TproxyMode
fn clone(&self) -> TproxyMode
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 moreimpl Copy for TproxyMode
Source§impl Debug for TproxyMode
impl Debug for TproxyMode
impl Eq for TproxyMode
Source§impl From<bool> for TproxyMode
impl From<bool> for TproxyMode
Source§impl PartialEq for TproxyMode
impl PartialEq for TproxyMode
impl StructuralPartialEq for TproxyMode
Auto Trait Implementations§
impl Freeze for TproxyMode
impl RefUnwindSafe for TproxyMode
impl Send for TproxyMode
impl Sync for TproxyMode
impl Unpin for TproxyMode
impl UnsafeUnpin for TproxyMode
impl UnwindSafe for TproxyMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.