pub struct PropertyNotification<'a> {
pub tid: u8,
pub kind: PropertyNotificationKind,
pub key: u32,
pub value: &'a [u8],
}Expand description
A validated property notification borrowing its value from the frame.
Fields§
§tid: u8§kind: PropertyNotificationKind§key: u32§value: &'a [u8]Implementations§
Source§impl<'a> PropertyNotification<'a>
impl<'a> PropertyNotification<'a>
Sourcepub fn parse(bytes: &'a [u8]) -> Result<Self, PropertyNotificationError>
pub fn parse(bytes: &'a [u8]) -> Result<Self, PropertyNotificationError>
Parse exactly the three property notification commands accepted by a host session. Requests, streams, and unknown commands are rejected.
pub fn from_frame(frame: &Frame<'a>) -> Result<Self, PropertyNotificationError>
Trait Implementations§
Source§impl<'a> Clone for PropertyNotification<'a>
impl<'a> Clone for PropertyNotification<'a>
Source§fn clone(&self) -> PropertyNotification<'a>
fn clone(&self) -> PropertyNotification<'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 PropertyNotification<'a>
impl<'a> Debug for PropertyNotification<'a>
Source§impl<'a> PartialEq for PropertyNotification<'a>
impl<'a> PartialEq for PropertyNotification<'a>
impl<'a> Copy for PropertyNotification<'a>
impl<'a> Eq for PropertyNotification<'a>
impl<'a> StructuralPartialEq for PropertyNotification<'a>
Auto Trait Implementations§
impl<'a> Freeze for PropertyNotification<'a>
impl<'a> RefUnwindSafe for PropertyNotification<'a>
impl<'a> Send for PropertyNotification<'a>
impl<'a> Sync for PropertyNotification<'a>
impl<'a> Unpin for PropertyNotification<'a>
impl<'a> UnwindSafe for PropertyNotification<'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)