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§
Source§impl Clone for CopilotWebSocketMessage
impl Clone for CopilotWebSocketMessage
Source§fn clone(&self) -> CopilotWebSocketMessage
fn clone(&self) -> CopilotWebSocketMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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