pub struct WsUrl<'a> {
pub host: &'a str,
pub ip: &'a str,
pub port: u16,
pub path: &'a str,
pub secure: bool,
}
Expand description
Struct that stores parsed websocket url result
Example input: ws://localhost:321/dsa
Fields§
§host: &'a str
§ip: &'a str
§port: u16
§path: &'a str
§secure: bool
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for WsUrl<'a>
Auto Trait Implementations§
impl<'a> Freeze for WsUrl<'a>
impl<'a> RefUnwindSafe for WsUrl<'a>
impl<'a> Send for WsUrl<'a>
impl<'a> Sync for WsUrl<'a>
impl<'a> Unpin for WsUrl<'a>
impl<'a> UnwindSafe for WsUrl<'a>
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