pub struct ConnectRequest {
pub destination: String,
pub connection_type: ConnectionType,
pub metadata: Vec<(String, String)>,
}Expand description
The connection request sent by the edge on a data stream.
Fields§
§destination: StringThe destination host and path (e.g. http://example.com/path).
connection_type: ConnectionTypeWhether the stream carries HTTP, websocket, or raw TCP traffic.
metadata: Vec<(String, String)>Method, host, and per-header metadata entries.
Trait Implementations§
Source§impl Clone for ConnectRequest
impl Clone for ConnectRequest
Auto Trait Implementations§
impl Freeze for ConnectRequest
impl RefUnwindSafe for ConnectRequest
impl Send for ConnectRequest
impl Sync for ConnectRequest
impl Unpin for ConnectRequest
impl UnsafeUnpin for ConnectRequest
impl UnwindSafe for ConnectRequest
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