[][src]Struct ssdp_probe::SsdpMSearch

pub struct SsdpMSearch<'a> {
    pub host: SocketAddr,
    pub mx: usize,
    pub st: &'a str,
    pub extra_lines: &'a str,
}

Representation of an M-SEARCH SSDP request

Fields

host: SocketAddr

Host (address to use to respond to the query)

mx: usize

Max number of seconds to wait before sending response

st: &'a str

Search Target, possible values include (non exhaustive list):

  • ssdp:all: search for all devices and services
  • upnp:rootdevice: search only for root devices
  • uuid:<device-UUID> search for a specific device using its UUID
extra_lines: &'a str

Extra lines appended to the M-SEARCH query

Implementations

impl<'a> SsdpMSearch<'a>[src]

pub fn get_payload(&self) -> Vec<u8>[src]

Get a properly formatted SSDP M-SEARCH payload for this

Auto Trait Implementations

impl<'a> RefUnwindSafe for SsdpMSearch<'a>

impl<'a> Send for SsdpMSearch<'a>

impl<'a> Sync for SsdpMSearch<'a>

impl<'a> Unpin for SsdpMSearch<'a>

impl<'a> UnwindSafe for SsdpMSearch<'a>

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.