pub enum Interface {
Stream,
Standard,
}
Expand description
The WebSocket API used to interact with the JavaScript runtime.
Variants§
Stream
Experimental WebSocketStream interface.
This provides backpressure in both directions and is recommend if supported by the browser.
Standard
Standarized WebSocket interface.
This provides backpressure only in the transmit direction and should only be used as a fallback.
Implementations§
Trait Implementations§
impl Copy for Interface
impl Eq for Interface
impl StructuralPartialEq for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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