pub struct ArbitraryPathTypeParams {
pub empty: u32,
pub scion: u32,
pub one_hop: u32,
pub epic: u32,
pub colibri: u32,
pub other: u32,
}Expand description
Configuration for generating arbitrary PathType values.
Controls the relative probability of each variant being generated.
Default weights: empty = 1, scion = 4, one_hop = 2, epic = 1, colibri = 1, other = 1.
Fields§
§empty: u32Weight for generating Empty path type.
scion: u32Weight for generating Scion (standard) path type.
one_hop: u32Weight for generating OneHop path type.
epic: u32Weight for generating Epic path type.
colibri: u32Weight for generating Colibri path type.
other: u32Weight for generating Other (unknown) path types.
Trait Implementations§
Source§impl Clone for ArbitraryPathTypeParams
impl Clone for ArbitraryPathTypeParams
Source§fn clone(&self) -> ArbitraryPathTypeParams
fn clone(&self) -> ArbitraryPathTypeParams
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 ArbitraryPathTypeParams
Source§impl Debug for ArbitraryPathTypeParams
impl Debug for ArbitraryPathTypeParams
Source§impl Default for ArbitraryPathTypeParams
impl Default for ArbitraryPathTypeParams
impl Eq for ArbitraryPathTypeParams
Source§impl Hash for ArbitraryPathTypeParams
impl Hash for ArbitraryPathTypeParams
Source§impl PartialEq for ArbitraryPathTypeParams
impl PartialEq for ArbitraryPathTypeParams
impl StructuralPartialEq for ArbitraryPathTypeParams
Auto Trait Implementations§
impl Freeze for ArbitraryPathTypeParams
impl RefUnwindSafe for ArbitraryPathTypeParams
impl Send for ArbitraryPathTypeParams
impl Sync for ArbitraryPathTypeParams
impl Unpin for ArbitraryPathTypeParams
impl UnsafeUnpin for ArbitraryPathTypeParams
impl UnwindSafe for ArbitraryPathTypeParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request