Struct coap_client::HostOptions
source · [−]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
sourceimpl Clone for HostOptions
impl Clone for HostOptions
sourcefn clone(&self) -> HostOptions
fn clone(&self) -> HostOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HostOptions
impl Debug for HostOptions
sourceimpl Default for HostOptions
impl Default for HostOptions
sourceimpl PartialEq<HostOptions> for HostOptions
impl PartialEq<HostOptions> for HostOptions
sourcefn eq(&self, other: &HostOptions) -> bool
fn eq(&self, other: &HostOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HostOptions) -> bool
fn ne(&self, other: &HostOptions) -> bool
This method tests for !=
.
sourceimpl ToString for HostOptions
impl ToString for HostOptions
sourceimpl TryFrom<&'_ str> for HostOptions
impl TryFrom<&'_ str> for HostOptions
impl StructuralPartialEq for HostOptions
Auto Trait Implementations
impl RefUnwindSafe for HostOptions
impl Send for HostOptions
impl Sync for HostOptions
impl Unpin for HostOptions
impl UnwindSafe for HostOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more