pub struct CommandStats {
pub ehlo: Option<u32>,
pub helo: Option<u32>,
pub mail: Option<u32>,
pub rcpt: Option<u32>,
pub data: Option<u32>,
pub bdat: Option<u32>,
pub quit: Option<u32>,
pub commands: Option<u32>,
}Expand description
SMTP命令统计信息
记录在连接期间执行的各种SMTP命令的数量统计
Fields§
§ehlo: Option<u32>EHLO命令执行次数(扩展HELO)
helo: Option<u32>HELO命令执行次数(基础问候)
mail: Option<u32>MAIL FROM命令执行次数(指定发送者)
rcpt: Option<u32>RCPT TO命令执行次数(指定接收者)
data: Option<u32>DATA命令执行次数(开始邮件内容传输)
bdat: Option<u32>BDAT命令执行次数(二进制数据传输)
quit: Option<u32>QUIT命令执行次数(结束会话)
commands: Option<u32>总命令数(所有类型命令的总和)
Trait Implementations§
Source§impl Clone for CommandStats
impl Clone for CommandStats
Source§fn clone(&self) -> CommandStats
fn clone(&self) -> CommandStats
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 CommandStats
impl Debug for CommandStats
Source§impl<'de> Deserialize<'de> for CommandStats
impl<'de> Deserialize<'de> for CommandStats
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
Auto Trait Implementations§
impl Freeze for CommandStats
impl RefUnwindSafe for CommandStats
impl Send for CommandStats
impl Sync for CommandStats
impl Unpin for CommandStats
impl UnwindSafe for CommandStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more