pub enum BounceWarningType {
MalformedRequest,
Configuration,
ResourceLimit,
Other,
}Expand description
BOUNCE警告类型枚举
定义BOUNCE守护进程可能产生的各种警告类型
Variants§
MalformedRequest
格式错误请求
当BOUNCE守护进程接收到格式不正确的请求时产生 这是在真实日志中发现的最常见警告类型
示例:
- “warning: malformed request”
Configuration
配置相关警告
BOUNCE服务配置文件或配置参数相关的警告
示例:
- “warning: configuration file not found”
- “warning: invalid configuration parameter”
ResourceLimit
资源限制警告
内存、磁盘空间、文件描述符等系统资源相关的警告
示例:
- “warning: memory allocation failed”
- “warning: disk space low”
Other
其他类型警告
不属于上述特定类别的其他警告
Implementations§
Trait Implementations§
Source§impl Clone for BounceWarningType
impl Clone for BounceWarningType
Source§fn clone(&self) -> BounceWarningType
fn clone(&self) -> BounceWarningType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BounceWarningType
impl Debug for BounceWarningType
Source§impl<'de> Deserialize<'de> for BounceWarningType
impl<'de> Deserialize<'de> for BounceWarningType
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
Source§impl PartialEq for BounceWarningType
impl PartialEq for BounceWarningType
Source§impl Serialize for BounceWarningType
impl Serialize for BounceWarningType
impl StructuralPartialEq for BounceWarningType
Auto Trait Implementations§
impl Freeze for BounceWarningType
impl RefUnwindSafe for BounceWarningType
impl Send for BounceWarningType
impl Sync for BounceWarningType
impl Unpin for BounceWarningType
impl UnwindSafe for BounceWarningType
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