pub struct HostOptions {
pub scheme: Transport,
pub host: String,
pub port: u16,
pub resource: String,
}
Expand description
Options for connecting client to hosts
Fields§
§scheme: Transport
Transport / scheme for connection
host: String
Host to connect to
port: u16
Port for connection
resource: String
Resource path (if provided)
Trait Implementations§
Source§impl Clone for HostOptions
impl Clone for HostOptions
Source§fn clone(&self) -> HostOptions
fn clone(&self) -> HostOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HostOptions
impl Debug for HostOptions
Source§impl Default for HostOptions
impl Default for HostOptions
Source§impl PartialEq for HostOptions
impl PartialEq for HostOptions
Source§impl ToString for HostOptions
impl ToString for HostOptions
Source§impl TryFrom<&str> for HostOptions
impl TryFrom<&str> for HostOptions
impl StructuralPartialEq for HostOptions
Auto Trait Implementations§
impl Freeze for HostOptions
impl RefUnwindSafe for HostOptions
impl Send for HostOptions
impl Sync for HostOptions
impl Unpin for HostOptions
impl UnwindSafe for HostOptions
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