pub enum ControlMessage {
TlsData(Bytes),
PushRequest,
PushReply(PushReply),
Auth(AuthMessage),
Info(String),
Exit,
}Expand description
Control channel message types
Variants§
TlsData(Bytes)
TLS data (wrapped in control channel)
PushRequest
Push request from client
PushReply(PushReply)
Push reply from server
Auth(AuthMessage)
Authentication data
Info(String)
Info message (version, etc.)
Exit
Exit/shutdown
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
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 moreAuto Trait Implementations§
impl !Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnwindSafe for ControlMessage
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