pub struct CopilotWebSocketMessage {
pub data: Vec<u8>,
pub binary: bool,
}Expand description
A single WebSocket message flowing through a CopilotWebSocketHandler.
Fields§
§data: Vec<u8>Message payload.
binary: boolWhether the payload is a binary frame (true) or a text frame (false).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CopilotWebSocketMessage
impl RefUnwindSafe for CopilotWebSocketMessage
impl Send for CopilotWebSocketMessage
impl Sync for CopilotWebSocketMessage
impl Unpin for CopilotWebSocketMessage
impl UnsafeUnpin for CopilotWebSocketMessage
impl UnwindSafe for CopilotWebSocketMessage
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