pub enum Answer<'a> {
Value(&'a [u8]),
Refused(Status),
}Expand description
What occupied one position of a reply.
Variants§
Value(&'a [u8])
The property’s value, as the device reports it.
Refused(Status)
A status where a value was asked for.
Implementations§
Trait Implementations§
impl<'a> Copy for Answer<'a>
impl<'a> Eq for Answer<'a>
impl<'a> StructuralPartialEq for Answer<'a>
Auto Trait Implementations§
impl<'a> Freeze for Answer<'a>
impl<'a> RefUnwindSafe for Answer<'a>
impl<'a> Send for Answer<'a>
impl<'a> Sync for Answer<'a>
impl<'a> Unpin for Answer<'a>
impl<'a> UnwindSafe for Answer<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)