Trait SizeLimit

Source
pub trait SizeLimit {
    // Required methods
    fn add(&mut self, n: u64) -> Result<()>;
    fn limit(&self) -> Option<u64>;
}
Expand description

Limits on the number of bytes that can be read or written.

Required Methods§

Source

fn add(&mut self, n: u64) -> Result<()>

Source

fn limit(&self) -> Option<u64>

Implementors§