pub enum ProxyEvent {
SessionStarted,
SessionEnded,
ClientJoined {
id: ClientId,
username: String,
},
ClientLeft {
id: ClientId,
username: String,
},
ControlChanged {
controller: Option<(ClientId, String)>,
},
}Expand description
Things happening inside the proxy that the host program may care
about — the port of the original’s clientJoin/changeControl
server events. Subscribe with ReflectionProxy::subscribe.
Variants§
SessionStarted
A session (upstream connection) was established.
SessionEnded
The session ended; the next client starts a fresh one.
ClientJoined
ClientLeft
ControlChanged
Control moved (None = controllerless; the proxy stands in).
Trait Implementations§
Source§impl Clone for ProxyEvent
impl Clone for ProxyEvent
Source§fn clone(&self) -> ProxyEvent
fn clone(&self) -> ProxyEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProxyEvent
impl RefUnwindSafe for ProxyEvent
impl Send for ProxyEvent
impl Sync for ProxyEvent
impl Unpin for ProxyEvent
impl UnsafeUnpin for ProxyEvent
impl UnwindSafe for ProxyEvent
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