pub struct SpdpReader;Expand description
SPDP-Beacon-Receiver. Stateless: nimmt ein Datagram und versucht, daraus eine DiscoveredParticipant-Info zu extrahieren.
Implementations§
Source§impl SpdpReader
impl SpdpReader
Sourcepub fn parse_datagram(
&self,
datagram: &[u8],
) -> Result<DiscoveredParticipant, SpdpError>
pub fn parse_datagram( &self, datagram: &[u8], ) -> Result<DiscoveredParticipant, SpdpError>
Versucht, einen DiscoveredParticipant aus einem Datagram zu extrahieren.
§Errors
SpdpError::Wirebei Decoder-Fehler.SpdpError::NotSpdpwenn keine SPDP-DATA-Submessage darin ist.
Trait Implementations§
Source§impl Clone for SpdpReader
impl Clone for SpdpReader
Source§fn clone(&self) -> SpdpReader
fn clone(&self) -> SpdpReader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpdpReader
impl Debug for SpdpReader
Source§impl Default for SpdpReader
impl Default for SpdpReader
Source§fn default() -> SpdpReader
fn default() -> SpdpReader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpdpReader
impl RefUnwindSafe for SpdpReader
impl Send for SpdpReader
impl Sync for SpdpReader
impl Unpin for SpdpReader
impl UnsafeUnpin for SpdpReader
impl UnwindSafe for SpdpReader
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