pub struct Origin {
pub secure: bool,
pub host: String,
pub port: u16,
}Expand description
Connection target: scheme/host/port identifying a pool bucket.
Fields§
§secure: boolTrue for https, false for http.
host: StringHost name (used for TCP connect and TLS SNI / cert validation).
port: u16TCP port.
Implementations§
Source§impl Origin
impl Origin
Address string host:port for TcpStream::connect.
Sourcepub fn host_header(&self) -> String
pub fn host_header(&self) -> String
Value for the Host header: host, or host:port when the port is
non-default for the scheme (443 for https, 80 for http).
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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