pub struct CoapResponseLocation(/* private fields */);
Expand description
Internal representation of a CoAP URI that can be used as a response location.
Implementations§
Source§impl 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§
Source§impl Clone for CoapResponseLocation
impl Clone for CoapResponseLocation
Source§fn clone(&self) -> CoapResponseLocation
fn clone(&self) -> CoapResponseLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CoapResponseLocation
impl Debug for CoapResponseLocation
Source§impl Display for CoapResponseLocation
impl Display for CoapResponseLocation
Source§impl Hash for CoapResponseLocation
impl Hash for CoapResponseLocation
Source§impl PartialEq for CoapResponseLocation
impl PartialEq for CoapResponseLocation
Source§impl TryFrom<CoapUri> for CoapResponseLocation
impl TryFrom<CoapUri> for CoapResponseLocation
impl Eq for CoapResponseLocation
impl StructuralPartialEq for CoapResponseLocation
Auto Trait Implementations§
impl Freeze for CoapResponseLocation
impl RefUnwindSafe for CoapResponseLocation
impl Send for CoapResponseLocation
impl Sync for CoapResponseLocation
impl Unpin for CoapResponseLocation
impl UnwindSafe for CoapResponseLocation
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