Struct tor_proto::circuit::CircParameters
source · pub struct CircParameters { /* private fields */ }Expand description
Description of the network’s current rules for building circuits.
Implementations§
source§impl 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§
source§impl Clone for CircParameters
impl Clone for CircParameters
source§fn clone(&self) -> CircParameters
fn clone(&self) -> CircParameters
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 CircParameters
impl Debug for CircParameters
source§impl Default for CircParameters
impl Default for CircParameters
source§fn 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§
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