pub struct WebsocketConnection {
pub id: String,
pub drain_notify: Notify,
pub state: Mutex<WebsocketConnectionState>,
}Fields§
§id: String§drain_notify: Notify§state: Mutex<WebsocketConnectionState>Implementations§
Source§impl WebsocketConnection
impl WebsocketConnection
pub fn new(id: impl Into<String>) -> Arc<Self>
pub async fn set_handler(&self, handler: Arc<dyn WebsocketHandler>)
Auto Trait Implementations§
impl !Freeze for WebsocketConnection
impl !RefUnwindSafe for WebsocketConnection
impl Send for WebsocketConnection
impl Sync for WebsocketConnection
impl Unpin for WebsocketConnection
impl !UnwindSafe for WebsocketConnection
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