pub struct HandshakeResponse {
pub status: u16,
pub status_message: String,
pub headers: HashMap<String, String>,
pub body: Vec<u8>,
}Expand description
WebSocket handshake response information
Fields§
§status: u16HTTP status code
status_message: StringHTTP status message
headers: HashMap<String, String>HTTP headers
body: Vec<u8>Response body (should be empty for WebSocket handshake)
Trait Implementations§
Source§impl Clone for HandshakeResponse
impl Clone for HandshakeResponse
Source§fn clone(&self) -> HandshakeResponse
fn clone(&self) -> HandshakeResponse
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 moreAuto Trait Implementations§
impl Freeze for HandshakeResponse
impl RefUnwindSafe for HandshakeResponse
impl Send for HandshakeResponse
impl Sync for HandshakeResponse
impl Unpin for HandshakeResponse
impl UnwindSafe for HandshakeResponse
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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