Struct libcoap_rs::message::response::CoapResponseLocation
source · pub struct CoapResponseLocation(_);
Expand description
Internal representation of a CoAP URI that can be used as a response location.
Implementations
sourceimpl CoapResponseLocation
impl CoapResponseLocation
sourcepub fn new_response_location(
uri: CoapUri
) -> Result<CoapResponseLocation, OptionValueError>
pub fn new_response_location(
uri: CoapUri
) -> Result<CoapResponseLocation, OptionValueError>
Creates a new response location from the given CoapUri, returning an OptionValueError if the URI contains invalid values for response locations.
sourcepub fn into_options(self) -> Vec<CoapOption>
pub fn into_options(self) -> Vec<CoapOption>
Converts this response location into a Vec<CoapOption>
that can be added to a message.
Trait Implementations
sourceimpl Clone for CoapResponseLocation
impl Clone for CoapResponseLocation
sourcefn clone(&self) -> CoapResponseLocation
fn clone(&self) -> CoapResponseLocation
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 moresourceimpl Debug for CoapResponseLocation
impl Debug for CoapResponseLocation
sourceimpl Display for CoapResponseLocation
impl Display for CoapResponseLocation
sourceimpl Hash for CoapResponseLocation
impl Hash for CoapResponseLocation
sourceimpl PartialEq<CoapResponseLocation> for CoapResponseLocation
impl PartialEq<CoapResponseLocation> for CoapResponseLocation
sourcefn eq(&self, other: &CoapResponseLocation) -> bool
fn eq(&self, other: &CoapResponseLocation) -> bool
sourceimpl TryFrom<CoapUri> for CoapResponseLocation
impl TryFrom<CoapUri> for CoapResponseLocation
impl Eq for CoapResponseLocation
impl StructuralEq for CoapResponseLocation
impl StructuralPartialEq for CoapResponseLocation
Auto Trait Implementations
impl RefUnwindSafe for CoapResponseLocation
impl Send for CoapResponseLocation
impl Sync for CoapResponseLocation
impl Unpin for CoapResponseLocation
impl UnwindSafe for CoapResponseLocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more