pub struct WebSocketCustomChild { /* private fields */ }Implementations§
Source§impl WebSocketCustomChild
impl WebSocketCustomChild
pub fn new(wsr: WebSocketReader) -> WebSocketCustomChild
pub fn automatic_close(self, value: bool) -> Self
Sourcepub fn spawn<H: WebSocketThread + 'static>(
self,
wst: H,
) -> JoinHandle<<H as WebSocketThread>::Output>
pub fn spawn<H: WebSocketThread + 'static>( self, wst: H, ) -> JoinHandle<<H as WebSocketThread>::Output>
Spawns a tokio thread that dispatches the message to the proved handler
Auto Trait Implementations§
impl Freeze for WebSocketCustomChild
impl !RefUnwindSafe for WebSocketCustomChild
impl Send for WebSocketCustomChild
impl Sync for WebSocketCustomChild
impl Unpin for WebSocketCustomChild
impl !UnwindSafe for WebSocketCustomChild
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