pub struct WebSocketRequest {
pub account_id: AccountId,
pub uri: Url,
pub host: String,
pub bearer: Option<String>,
pub origin: Origin,
}Available on (crate features
listen or pairing) and crate feature network-client only.Expand description
Build a websocket connection request.
Fields§
§account_id: AccountIdAccount identifier.
uri: UrlRemote URI.
host: StringRemote host.
bearer: Option<String>Bearer authentication.
origin: OriginURL origin.
Implementations§
Trait Implementations§
Source§impl IntoClientRequest for WebSocketRequest
impl IntoClientRequest for WebSocketRequest
Auto Trait Implementations§
impl Freeze for WebSocketRequest
impl RefUnwindSafe for WebSocketRequest
impl Send for WebSocketRequest
impl Sync for WebSocketRequest
impl Unpin for WebSocketRequest
impl UnwindSafe for WebSocketRequest
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