pub struct DialOptions {
pub subprotocols: Vec<String>,
pub headers: HeaderMap,
}Expand description
What the client needs the transport to negotiate: the subprotocols its protocols speak, most preferred first, and the headers that authenticate the request, a cookie or a token, since an Action Cable server authorizes the upgrade request itself.
Fields§
§subprotocols: Vec<String>The subprotocols to offer, most preferred first, with
SUBPROTOCOL_UNSUPPORTED last.
headers: HeaderMapThe headers the upgrade request carries and nothing else ambient.
Trait Implementations§
Source§impl Clone for DialOptions
impl Clone for DialOptions
Source§impl Debug for DialOptions
impl Debug for DialOptions
Auto Trait Implementations§
impl Freeze for DialOptions
impl RefUnwindSafe for DialOptions
impl Send for DialOptions
impl Sync for DialOptions
impl Unpin for DialOptions
impl UnsafeUnpin for DialOptions
impl UnwindSafe for DialOptions
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