pub enum Entry {
FindService(ServiceEntry),
OfferService(ServiceEntry),
StopOfferService(ServiceEntry),
SubscribeEventGroup(EventGroupEntry),
SubscribeAckEventGroup(EventGroupEntry),
}Expand description
A decoded SD entry, wrapping a ServiceEntry or EventGroupEntry.
Variants§
FindService(ServiceEntry)
Find a service.
OfferService(ServiceEntry)
Offer a service.
StopOfferService(ServiceEntry)
Stop offering a service.
SubscribeEventGroup(EventGroupEntry)
Subscribe to an event group.
SubscribeAckEventGroup(EventGroupEntry)
Acknowledge an event group subscription.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn first_options_count(&self) -> u8
pub fn first_options_count(&self) -> u8
Returns the number of options in the first options run.
Sourcepub fn second_options_count(&self) -> u8
pub fn second_options_count(&self) -> u8
Returns the number of options in the second options run.
Sourcepub fn total_options_count(&self) -> u8
pub fn total_options_count(&self) -> u8
Returns the total number of options across both runs.
Trait Implementations§
Source§impl Encode for Entry
impl Encode for Entry
Source§type Error = Error
type Error = Error
Per-implementation error; constructible from an I/O
embedded_io::ErrorKind
so the fixed-width write_* leaf helpers lift through ?. Read moreSource§fn encode(&self, writer: &mut impl Write) -> Result<usize, Self::Error>
fn encode(&self, writer: &mut impl Write) -> Result<usize, Self::Error>
Serialize into
writer; return the number of bytes written. Read moreSource§fn encode_to_slice(
&self,
buf: &mut [u8],
) -> Result<usize, EncodeToSliceError<Self::Error>>
fn encode_to_slice( &self, buf: &mut [u8], ) -> Result<usize, EncodeToSliceError<Self::Error>>
Encode into a fixed slice, reporting
needed/available
(InsufficientBuffer) instead of a bare
embedded_io::ErrorKind::WriteZero when the slice is too small, and
hiding the &mut &mut [u8] cursor re-borrow every fixed-buffer call
site otherwise writes by hand. Read moreimpl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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