pub struct Interest {
pub min_severity: Option<Severity>,
}
Expand description
Interest expresses the scope of clients’ desired diagnostics data, e.g. for filtering messages or controlling their generation.
Fields§
§min_severity: Option<Severity>
Trait Implementations§
Source§impl Encodable for Interest
impl Encodable for Interest
Source§type Encoded = WireInterest
type Encoded = WireInterest
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl TakeFrom<WireInterest> for Interest
impl TakeFrom<WireInterest> for Interest
Source§fn take_from(from: &WireInterest) -> Self
fn take_from(from: &WireInterest) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnwindSafe for Interest
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