pub struct ReflectionProxy { /* private fields */ }Expand description
A running reflection proxy. Dropping the handle does NOT stop it;
call Self::shutdown for that.
Implementations§
Source§impl ReflectionProxy
impl ReflectionProxy
pub fn builder() -> ProxyBuilder
Sourcepub fn subscribe(&self) -> Receiver<ProxyEvent>
pub fn subscribe(&self) -> Receiver<ProxyEvent>
Subscribe to proxy events (client joins/leaves, control changes,
session lifecycle). Each subscriber gets every event from the
moment it subscribes; slow subscribers may observe
broadcast::error::RecvError::Lagged.
Sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
The address your bot (Account::offline(...)) and any vanilla
spectator clients should connect to.
Auto Trait Implementations§
impl !RefUnwindSafe for ReflectionProxy
impl !UnwindSafe for ReflectionProxy
impl Freeze for ReflectionProxy
impl Send for ReflectionProxy
impl Sync for ReflectionProxy
impl Unpin for ReflectionProxy
impl UnsafeUnpin for ReflectionProxy
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