pub struct ServerHandle { /* private fields */ }Expand description
A handle for the server side of an upgraded WebSocket connection.
Implementations§
Source§impl ServerHandle
impl ServerHandle
Sourcepub fn send_to_client(&self, frame: UnitFrame)
pub fn send_to_client(&self, frame: UnitFrame)
Encode frame and deliver it to the policy via on_http_response_body.
Outgoing calls triggered by the policy are resolved inline.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerHandle
impl !Send for ServerHandle
impl !Sync for ServerHandle
impl !UnwindSafe for ServerHandle
impl Freeze for ServerHandle
impl Unpin for ServerHandle
impl UnsafeUnpin for ServerHandle
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