Enum samotop::model::controll::ServerControll
source · pub enum ServerControll {
PeerConnected {
local: Option<SocketAddr>,
peer: Option<SocketAddr>,
},
PeerShutdown,
Command(SmtpCommand),
Invalid(Bytes),
DataChunk(Bytes),
FinalDot(Bytes),
EscapeDot(Bytes),
ConfirmSwitchToData,
}
Expand description
Represents the instructions towards the server side of the stream.
Variants
PeerConnected
Peer connected
PeerShutdown
Peer disconnected
Command(SmtpCommand)
SMTP command line
Invalid(Bytes)
raw input that could not be understood
DataChunk(Bytes)
Available mail data without signalling dots
FinalDot(Bytes)
The SMTP data terminating dot (. CR LF) is part of protocol signalling and not part of data
EscapeDot(Bytes)
The SMTP data escape dot (.) is part of protocol signalling and not part of data
ConfirmSwitchToData
The stream source decoder may need to know if a “data” command
should now switch processing to data mode of parsing input.
In that case it will send this controll and will expect
the corresponding ClientControll::AcceptData(bool)
Trait Implementations
sourceimpl Clone for ServerControll
impl Clone for ServerControll
sourcefn clone(&self) -> ServerControll
fn clone(&self) -> ServerControll
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ServerControll
impl Debug for ServerControll
sourceimpl PartialEq<ServerControll> for ServerControll
impl PartialEq<ServerControll> for ServerControll
sourcefn eq(&self, other: &ServerControll) -> bool
fn eq(&self, other: &ServerControll) -> bool
impl Eq for ServerControll
impl StructuralEq for ServerControll
impl StructuralPartialEq for ServerControll
Auto Trait Implementations
impl RefUnwindSafe for ServerControll
impl Send for ServerControll
impl Sync for ServerControll
impl Unpin for ServerControll
impl UnwindSafe for ServerControll
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more