pub struct PropPayload<'a> {
pub key: u32,
pub value: &'a [u8],
}Expand description
Payload of CMD_PROP_GET, CMD_PROP_SET, and CMD_PROP_IS.
For CMD_PROP_GET the value is empty.
Fields§
§key: u32§value: &'a [u8]Implementations§
Source§impl<'a> PropPayload<'a>
impl<'a> PropPayload<'a>
pub fn parse(payload: &'a [u8]) -> Result<Self, ParseError>
Trait Implementations§
Source§impl<'a> Clone for PropPayload<'a>
impl<'a> Clone for PropPayload<'a>
Source§fn clone(&self) -> PropPayload<'a>
fn clone(&self) -> PropPayload<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PropPayload<'a>
impl<'a> Debug for PropPayload<'a>
Source§impl<'a> PartialEq for PropPayload<'a>
impl<'a> PartialEq for PropPayload<'a>
impl<'a> Copy for PropPayload<'a>
impl<'a> Eq for PropPayload<'a>
impl<'a> StructuralPartialEq for PropPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for PropPayload<'a>
impl<'a> RefUnwindSafe for PropPayload<'a>
impl<'a> Send for PropPayload<'a>
impl<'a> Sync for PropPayload<'a>
impl<'a> Unpin for PropPayload<'a>
impl<'a> UnwindSafe for PropPayload<'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)