Struct web_socket::WebSocket
source · [−]pub struct WebSocket<const SIDE: bool> {
pub stream: BufReader<TcpStream>,
pub on_event: Box<dyn FnMut(Event<'_>) -> Result<()> + Send + Sync>,
/* private fields */
}Fields
stream: BufReader<TcpStream>on_event: Box<dyn FnMut(Event<'_>) -> Result<()> + Send + Sync>Implementations
Auto Trait Implementations
impl<const SIDE: bool> !RefUnwindSafe for WebSocket<SIDE>
impl<const SIDE: bool> Send for WebSocket<SIDE>
impl<const SIDE: bool> Sync for WebSocket<SIDE>
impl<const SIDE: bool> Unpin for WebSocket<SIDE>
impl<const SIDE: bool> !UnwindSafe for WebSocket<SIDE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more