pub struct PondSocket { /* private fields */ }Implementations§
Source§impl PondSocket
impl PondSocket
pub fn new(options: Options, pubsub: Option<Arc<dyn PubSub>>) -> Arc<Self> ⓘ
pub fn with_defaults() -> Arc<Self> ⓘ
pub async fn create_endpoint<H>(
self: &Arc<Self>,
path: impl Into<String>,
handler: H,
) -> Arc<Endpoint> ⓘwhere
H: ConnectionHandler + 'static,
pub async fn match_endpoint(&self, path: &str) -> Option<EndpointMatch>
pub async fn request_connection( &self, path: &str, incoming: IncomingConnection, user_id: Option<String>, ) -> Option<(Arc<Endpoint>, ConnectionContext)>
pub async fn find_transport(&self, user_id: &str) -> Option<Arc<dyn Transport>>
pub async fn close(&self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for PondSocket
impl !RefUnwindSafe for PondSocket
impl Send for PondSocket
impl Sync for PondSocket
impl Unpin for PondSocket
impl UnsafeUnpin for PondSocket
impl !UnwindSafe for PondSocket
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