pub struct WsHandshake;Implementations§
Source§impl WsHandshake
impl WsHandshake
pub fn build_request(host: &str, _path: &str, key: &str) -> Headers
pub fn generate_key() -> String
pub fn validate_response( status: HttpStatus, headers: &Headers, ) -> Result<String, String>
pub fn compute_accept(key: &str) -> String
pub fn verify_accept(key: &str, accept: &str) -> bool
Auto Trait Implementations§
impl Freeze for WsHandshake
impl RefUnwindSafe for WsHandshake
impl Send for WsHandshake
impl Sync for WsHandshake
impl Unpin for WsHandshake
impl UnsafeUnpin for WsHandshake
impl UnwindSafe for WsHandshake
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