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]
impl Limits
pub fn new(
write_limit: usize,
read_limit: usize,
time_limit: Duration
) -> Limits
[src]
pub fn new(
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]
impl Debug for Limits
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Limits
[src]
impl Clone for Limits
fn clone(&self) -> Limits
[src]
fn clone(&self) -> Limits
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for Limits
[src]
impl Default for Limits