[][src]Struct yooper::ssdp::message::MSearch

pub struct MSearch {
    pub host: String,
    pub man: ManDiscover,
    pub cache_control: Option<String>,
    pub max_wait: Option<u8>,
    pub target: SearchTarget,
    pub user_agent: Option<String>,
    pub tcp_port: Option<u16>,
    pub friendly_name: Option<String>,
    pub uuid: Option<String>,
}

Fields

host: Stringman: ManDiscovercache_control: Option<String>max_wait: Option<u8>

Maximum wait time in seconds. shall be greater than or equal to 1 and should be less than 5 inclusive.

target: SearchTarget

Field value contains Search Target.

user_agent: Option<String>

Field value shall begin with the following “product tokens” (defined by HTTP/1.1). The first product token identifes the operating system in the form OS name/OS version, the second token represents the UPnP version and shall be UPnP/2.0, and the third token identifes the product using the form product name/product version. For example, “USER-AGENT: unix/5.1 UPnP/2.0 MyProduct/1.0”.

tcp_port: Option<u16>

if set, this TCP port can be used for any follow up requests

friendly_name: Option<String>

Specifies the friendly name of the control point. The friendly name is vendor specific.

uuid: Option<String>

uuid of the control point.

Trait Implementations

impl Debug for MSearch[src]

impl Default for MSearch[src]

impl FromHeaders for MSearch[src]

impl PartialEq<MSearch> for MSearch[src]

impl StructuralPartialEq for MSearch[src]

impl ToHeaders for MSearch[src]

Auto Trait Implementations

impl RefUnwindSafe for MSearch

impl Send for MSearch

impl Sync for MSearch

impl Unpin for MSearch

impl UnwindSafe for MSearch

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.