pub struct LogBudget {
pub enabled: bool,
pub max_records_per_second: i64,
pub burst: i64,
}Expand description
The log-channel allowance, sent only when the adapter announced the logs
capability. Absent means logs are disabled: an adapter that receives no
budget must not emit log messages at all.
Fields§
§enabled: boolWhether the driver wants log records at all.
max_records_per_second: i64Sustained ceiling on records per second.
burst: i64Records allowed in a burst on top of the sustained rate.
Trait Implementations§
impl Copy for LogBudget
Source§impl<'de> Deserialize<'de> for LogBudget
impl<'de> Deserialize<'de> for LogBudget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LogBudget
impl StructuralPartialEq for LogBudget
Auto Trait Implementations§
impl Freeze for LogBudget
impl RefUnwindSafe for LogBudget
impl Send for LogBudget
impl Sync for LogBudget
impl Unpin for LogBudget
impl UnsafeUnpin for LogBudget
impl UnwindSafe for LogBudget
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