pub struct MockWebSocketResponse {
pub messages: Vec<WebSocketMessage>,
pub delay_ms: u64,
}Expand description
Mock responses for WebSocket
Fields§
§messages: Vec<WebSocketMessage>Messages to send when conditions are met
delay_ms: u64Delay before sending (ms)
Implementations§
Trait Implementations§
Source§impl Clone for MockWebSocketResponse
impl Clone for MockWebSocketResponse
Source§fn clone(&self) -> MockWebSocketResponse
fn clone(&self) -> MockWebSocketResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockWebSocketResponse
impl Debug for MockWebSocketResponse
Auto Trait Implementations§
impl Freeze for MockWebSocketResponse
impl RefUnwindSafe for MockWebSocketResponse
impl Send for MockWebSocketResponse
impl Sync for MockWebSocketResponse
impl Unpin for MockWebSocketResponse
impl UnsafeUnpin for MockWebSocketResponse
impl UnwindSafe for MockWebSocketResponse
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