pub enum IncomingMessage {
NewPeer,
SetPeerStatus(PeerStatus),
StartSession(StartSessionMessage),
EndSession(EndSessionMessage),
Peer(PeerMessage),
List,
ListConsumers,
}
Expand description
Messages received by the server from peers
Variants§
NewPeer
Internal message to let know about new peers
SetPeerStatus(PeerStatus)
Set current peer status
StartSession(StartSessionMessage)
Start a session with another peer
EndSession(EndSessionMessage)
End an existing session
Peer(PeerMessage)
Send a message to a peer the sender is currently in session with
List
Retrieve the current list of producers
ListConsumers
Retrieve the current list of consumers
Trait Implementations§
Source§impl Debug for IncomingMessage
impl Debug for IncomingMessage
Source§impl<'de> Deserialize<'de> for IncomingMessage
impl<'de> Deserialize<'de> for IncomingMessage
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 IncomingMessage
impl RefUnwindSafe for IncomingMessage
impl Send for IncomingMessage
impl Sync for IncomingMessage
impl Unpin for IncomingMessage
impl UnwindSafe for IncomingMessage
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