pub struct MyCBOR { /* private fields */ }Expand description
A demo struct with several members, all of which implement minicbor traits.
Using TypeRenderable, a CoAP GETter and SETter are implemented. To avoid being boring, both do some checks: The setter rejects attempts to write HTML, and the getter refuses to answer if the “hidden” property is true.
Trait Implementations§
Source§impl FetchRenderable for MyCBOR
impl FetchRenderable for MyCBOR
Source§impl GetRenderable for MyCBOR
impl GetRenderable for MyCBOR
Auto Trait Implementations§
impl Freeze for MyCBOR
impl RefUnwindSafe for MyCBOR
impl Send for MyCBOR
impl Sync for MyCBOR
impl Unpin for MyCBOR
impl UnwindSafe for MyCBOR
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