pub fn default_for(spec_version: SpecVersion) -> Self {
        Options {
            spec_version: spec_version.clone(),
            network_interface: None,
            network_version: None,
            search_target: SearchTarget::RootDevices,
            packet_ttl: if spec_version == SpecVersion::V10 {
                4
            } else {
                2
            },
            max_wait_time: 2,
            product_and_version: None,
            control_point: None,
        }
    }
///
/// Construct an options object for the given specification version.
///
Construct an options object for the given specification version.
Construct an options object for the given specification version .
pub fn default_for(spec_version: SpecVersion) -> Self {
        Options {
            spec_version: spec_version.clone(),
            network_interface: None,
            network_version: None,
            search_target: SearchTarget::RootDevices,
            packet_ttl: if spec_version == SpecVersion::V10 {
                4
            } else {
                2
            },
            max_wait_time: 2,
            product_and_version: None,
            control_point: None,
        }
    }
pub fn default_for ( spec_version : SpecVersion ) -> Self { Options { spec_version : spec_version . clone ( ) , network_interface : None , network_version : None , search_target : SearchTarget :: RootDevices , packet_ttl : if spec_version == SpecVersion :: V10 { 4 } else { 2 } , max_wait_time : 2 , product_and_version : None , control_point : None , } }
Construct an options object for the given specification version.
Construct an options object for the given specification version .
spec_version
SpecVersion
spec_version
SpecVersion