pub struct Parameters { /* private fields */ }Expand description
Timing parameters, as described in padding-spec.txt
Implementations
sourceimpl Parameters
impl Parameters
sourcepub fn builder() -> ParametersBuilder
pub fn builder() -> ParametersBuilder
Returns a fresh, default, builder
sourceimpl Parameters
impl Parameters
sourcepub fn padding_negotiate_cell(&self) -> Result<PaddingNegotiate, Bug>
pub fn padding_negotiate_cell(&self) -> Result<PaddingNegotiate, Bug>
Return a PADDING_NEGOTIATE START cell specifying precisely these parameters
This function does not take account of the need to avoid sending particular parameters, and instead sending zeroes, if the requested padding is the consensus default. The caller must take care of that.
sourcepub fn default_padding() -> Self
pub fn default_padding() -> Self
Make a Parameters containing the specification-defined default parameters
Trait Implementations
sourceimpl Clone for Parameters
impl Clone for Parameters
sourcefn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for Parameters
impl Debug for Parameters
sourceimpl PartialEq<Parameters> for Parameters
impl PartialEq<Parameters> for Parameters
sourcefn eq(&self, other: &Parameters) -> bool
fn eq(&self, other: &Parameters) -> bool
impl Copy for Parameters
impl Eq for Parameters
impl StructuralEq for Parameters
impl StructuralPartialEq for Parameters
Auto Trait Implementations
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more