Struct tor_proto::circuit::CircParameters
source · [−]pub struct CircParameters { /* private fields */ }
Expand description
Description of the network’s current rules for building circuits.
Implementations
sourceimpl CircParameters
impl CircParameters
sourcepub fn set_initial_send_window(&mut self, v: u16) -> Result<()>
pub fn set_initial_send_window(&mut self, v: u16) -> Result<()>
Override the default initial send window for these parameters. Gives an error on any value above 1000.
You should probably not call this.
sourcepub fn initial_send_window(&self) -> u16
pub fn initial_send_window(&self) -> u16
Return the initial send window as set in this parameter set.
sourcepub fn set_extend_by_ed25519_id(&mut self, v: bool)
pub fn set_extend_by_ed25519_id(&mut self, v: bool)
Override the default decision about whether to use ed25519 identities in outgoing EXTEND2 cells.
You should probably not call this.
sourcepub fn extend_by_ed25519_id(&self) -> bool
pub fn extend_by_ed25519_id(&self) -> bool
Return true if we’re configured to extend by ed25519 ID; false otherwise.
Trait Implementations
sourceimpl Clone for CircParameters
impl Clone for CircParameters
sourcefn clone(&self) -> CircParameters
fn clone(&self) -> CircParameters
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 more
sourceimpl Debug for CircParameters
impl Debug for CircParameters
sourceimpl Default for CircParameters
impl Default for CircParameters
sourcefn default() -> CircParameters
fn default() -> CircParameters
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CircParameters
impl Send for CircParameters
impl Sync for CircParameters
impl Unpin for CircParameters
impl UnwindSafe for CircParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more