pub struct RaknetRelayProxy<P = PassthroughRelayPolicy> { /* private fields */ }Implementations§
Source§impl<P> RaknetRelayProxy<P>where
P: RelayPolicy,
impl<P> RaknetRelayProxy<P>where
P: RelayPolicy,
pub fn try_new( server: RaknetServer, upstream_connector: UpstreamConnector, contract: RelayContract<P>, runtime_config: RelayRuntimeConfig, ) -> Result<Self>
pub fn new( server: RaknetServer, upstream_connector: UpstreamConnector, contract: RelayContract<P>, runtime_config: RelayRuntimeConfig, ) -> Self
pub async fn bind( downstream_bind_addr: SocketAddr, upstream_connector: UpstreamConnector, contract: RelayContract<P>, runtime_config: RelayRuntimeConfig, ) -> Result<Self>
pub fn session_count(&self) -> usize
pub async fn next_event(&mut self) -> Option<RaknetRelayProxyEvent>
pub async fn shutdown(self) -> Result<()>
Auto Trait Implementations§
impl<P> Freeze for RaknetRelayProxy<P>
impl<P = PassthroughRelayPolicy> !RefUnwindSafe for RaknetRelayProxy<P>
impl<P> Send for RaknetRelayProxy<P>
impl<P> Sync for RaknetRelayProxy<P>
impl<P> Unpin for RaknetRelayProxy<P>
impl<P> UnsafeUnpin for RaknetRelayProxy<P>
impl<P> UnwindSafe for RaknetRelayProxy<P>where
P: RefUnwindSafe,
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