[][src]Struct yooper::discovery::Discovery

pub struct Discovery { /* fields omitted */ }

Discover services on your network

Implementations

impl Discovery[src]

pub async fn new() -> Result<Self, Error>[src]

Create a new Discovery struct, including creating a new socket

pub fn from_socket(socket: UdpSocket) -> Result<Self, Error>[src]

Create a new Discovery struct based on an existing Tokio socket

Send out an MSearch packet to discover services

pub async fn find<'_>(&'_ mut self, secs: u8) -> Result<Vec<Device>, Error>[src]

Find all SSDP services on the network. Will block for n secs then return a list of discovered devices secs should be between 1 and 5 to comply with

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.