Struct tor_proto::channel::padding::Parameters
source · pub struct Parameters { /* private fields */ }Expand description
Timing parameters, as described in padding-spec.txt
Implementations§
source§impl Parameters
impl Parameters
sourcepub fn builder() -> ParametersBuilder
pub fn builder() -> ParametersBuilder
Returns a fresh, default, builder
source§impl 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§
source§impl Clone for Parameters
impl Clone for Parameters
source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a copy 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 Parameters
impl Debug for Parameters
source§impl PartialEq<Parameters> for Parameters
impl PartialEq<Parameters> for Parameters
source§fn eq(&self, other: &Parameters) -> bool
fn eq(&self, other: &Parameters) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.