pub struct FibreConfig {
pub enabled: bool,
pub fec_parity_ratio: f64,
pub chunk_timeout_secs: u64,
pub max_retries: u32,
pub max_assemblies: usize,
}Expand description
FIBRE protocol configuration
Fields§
§enabled: boolEnable FIBRE relay
fec_parity_ratio: f64FEC parity ratio (0.0-1.0, default: 0.2 = 20% parity)
chunk_timeout_secs: u64Chunk retransmission timeout (seconds)
max_retries: u32Maximum retransmission attempts
max_assemblies: usizeMaximum concurrent block assemblies
Trait Implementations§
Source§impl Clone for FibreConfig
impl Clone for FibreConfig
Source§fn clone(&self) -> FibreConfig
fn clone(&self) -> FibreConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FibreConfig
impl Debug for FibreConfig
Source§impl Default for FibreConfig
impl Default for FibreConfig
Source§impl<'de> Deserialize<'de> for FibreConfig
impl<'de> Deserialize<'de> for FibreConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FibreConfig
impl PartialEq for FibreConfig
Source§impl Serialize for FibreConfig
impl Serialize for FibreConfig
impl StructuralPartialEq for FibreConfig
Auto Trait Implementations§
impl Freeze for FibreConfig
impl RefUnwindSafe for FibreConfig
impl Send for FibreConfig
impl Sync for FibreConfig
impl Unpin for FibreConfig
impl UnsafeUnpin for FibreConfig
impl UnwindSafe for FibreConfig
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more