pub struct DhtMonitorOptions {
pub gets: bool,
pub responses: bool,
pub puts: bool,
pub capacity: usize,
pub max_buffered_bytes: usize,
}Expand description
Параметры наблюдения. По умолчанию наблюдаются все три вида событий, очередь на 256 событий и 4 МиБ.
Fields§
§gets: boolСообщать о запросах GET.
responses: boolСообщать об ответах на GET.
puts: boolСообщать о запросах PUT.
capacity: usizeСобытий в очереди, 1..=4096.
max_buffered_bytes: usizeНаибольший суммарный размер непрочитанных событий в байтах.
Trait Implementations§
Source§impl Clone for DhtMonitorOptions
impl Clone for DhtMonitorOptions
Source§fn clone(&self) -> DhtMonitorOptions
fn clone(&self) -> DhtMonitorOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DhtMonitorOptions
Source§impl Debug for DhtMonitorOptions
impl Debug for DhtMonitorOptions
Auto Trait Implementations§
impl Freeze for DhtMonitorOptions
impl RefUnwindSafe for DhtMonitorOptions
impl Send for DhtMonitorOptions
impl Sync for DhtMonitorOptions
impl Unpin for DhtMonitorOptions
impl UnsafeUnpin for DhtMonitorOptions
impl UnwindSafe for DhtMonitorOptions
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