pub enum MutinyProxyCommand {
Disconnect {
to: Vec<u8>,
from: Vec<u8>,
},
Ping,
}Expand description
MutinyProxyCommand are proxy commands that get sent to/from the clients to/from the proxy.
Disconnect:
The proxy uses this to inform a client that one of the peers
that they were connected to has gone away.
The clients should use this to inform the proxy that they are
asking to be disconnected to one of the peers that they are
currently connected to. The proxy will send the other peer
the Disconnect message afterwards.
Ping: A message for the clients to send to us to keep websocket alive.
Variants§
Trait Implementations§
Source§impl Clone for MutinyProxyCommand
impl Clone for MutinyProxyCommand
Source§fn clone(&self) -> MutinyProxyCommand
fn clone(&self) -> MutinyProxyCommand
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 MutinyProxyCommand
impl Debug for MutinyProxyCommand
Source§impl<'de> Deserialize<'de> for MutinyProxyCommand
impl<'de> Deserialize<'de> for MutinyProxyCommand
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 MutinyProxyCommand
impl PartialEq for MutinyProxyCommand
Source§impl Serialize for MutinyProxyCommand
impl Serialize for MutinyProxyCommand
impl Eq for MutinyProxyCommand
impl StructuralPartialEq for MutinyProxyCommand
Auto Trait Implementations§
impl Freeze for MutinyProxyCommand
impl RefUnwindSafe for MutinyProxyCommand
impl Send for MutinyProxyCommand
impl Sync for MutinyProxyCommand
impl Unpin for MutinyProxyCommand
impl UnwindSafe for MutinyProxyCommand
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