Struct coap_handler_implementations::wkc::EmptyRecord
source · [−]pub struct EmptyRecord;
Expand description
A report with no path, relation or attributes
This is convenient both in places where a type is needed as an element for an Empty iterator (as in NotReporting) and to wrap a resource with no further properties in (in a Once iterator, relying on the tree builder to augment the empty path with the actual path).
Trait Implementations
sourceimpl Record for EmptyRecord
impl Record for EmptyRecord
type PathElement = &'static &'static str
type PathElements = Empty<&'static &'static str>
type Attributes = Empty<Attribute>
sourcefn path(&self) -> Self::PathElements
fn path(&self) -> Self::PathElements
List of path segments (equivalent to Uri-Path option values) leading to the indicated
resoruce Read more
sourcefn rel(&self) -> Option<&str>
fn rel(&self) -> Option<&str>
Link relation (or None to default to the implicit “hosts”) Read more
sourcefn attributes(&self) -> Self::Attributes
fn attributes(&self) -> Self::Attributes
Target attributes of the link
Auto Trait Implementations
impl RefUnwindSafe for EmptyRecord
impl Send for EmptyRecord
impl Sync for EmptyRecord
impl Unpin for EmptyRecord
impl UnwindSafe for EmptyRecord
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