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

pub struct Available {
    pub host: String,
    pub max_age: String,
    pub location: String,
    pub secure_location: Option<String>,
    pub notification_type: SearchTarget,
    pub server: String,
    pub unique_service_name: UniqueServiceName,
    pub boot_id: Option<i32>,
    pub config_id: Option<i32>,
    pub search_port: Option<u16>,
}

Fields

host: Stringmax_age: String

after this duration, control points should assume the device (or service) is no longer available; as long as a control point has received at least one advertisement that is still valid from a root device, any of its embedded devices or any of its services, then the control point can assume that all are available.

location: String

Field value contains a URL to the UPnP description of the root device. Normally the host portion contains a literal IP address rather than a domain name in unmanaged networks. Specified by UPnP vendor. Single absolute URL (see RFC 3986)

secure_location: Option<String>notification_type: SearchTargetserver: 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 OSname/OSversion, the second token represents the UPnP version and shall be UPnP/2.0, and the third token identifes the product using the form productname/productversion.

unique_service_name: UniqueServiceName

Identifies a unique instance of a device or service.

boot_id: Option<i32>

presents the boot instance of the device expressed according to a monotonically increasing value.

config_id: Option<i32>

A number identifying this particular configuration. if configuration changes, this should change as well

search_port: Option<u16>

A port other than 1900 than can be used for queries

Trait Implementations

impl Debug for Available[src]

impl FromHeaders for Available[src]

impl PartialEq<Available> for Available[src]

impl StructuralPartialEq for Available[src]

impl ToHeaders for Available[src]

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.