Struct thrussh::Limits
[−]
[src]
pub struct Limits { /* fields omitted */ }
The number of bytes read/written, and the number of seconds before a key re-exchange is requested.
Methods
impl Limits
[src]
pub fn new(
write_limit: usize,
read_limit: usize,
time_limit: Duration
) -> Limits
[src]
write_limit: usize,
read_limit: usize,
time_limit: Duration
) -> Limits
Create a new Limits
, checking that the given bounds cannot lead to nonce reuse.
Trait Implementations
impl Debug for Limits
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Limits
[src]
fn clone(&self) -> Limits
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more