pub struct MockWebSocket {
pub socket: u32,
pub url: String,
pub headers: Vec<(String, String)>,
pub sent: Vec<String>,
pub closed: bool,
}Expand description
A WebSocket the plugin opened on the test host.
Fields§
§socket: u32§url: String§headers: Vec<(String, String)>§sent: Vec<String>The text frames it sent.
closed: boolTrait Implementations§
Source§impl Clone for MockWebSocket
impl Clone for MockWebSocket
Source§impl Debug for MockWebSocket
impl Debug for MockWebSocket
impl Eq for MockWebSocket
Source§impl PartialEq for MockWebSocket
impl PartialEq for MockWebSocket
impl StructuralPartialEq for MockWebSocket
Auto Trait Implementations§
impl Freeze for MockWebSocket
impl RefUnwindSafe for MockWebSocket
impl Send for MockWebSocket
impl Sync for MockWebSocket
impl Unpin for MockWebSocket
impl UnsafeUnpin for MockWebSocket
impl UnwindSafe for MockWebSocket
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