pub struct PortmapParams {
pub duration_seconds: Option<u64>,
pub type: Option<String>,
pub gateway_addr: Option<String>,
pub self_addr: Option<String>,
pub log_http: Option<bool>,
}Fields§
§duration_seconds: Option<u64>How long to probe for, in seconds. Defaults to 5, capped at 120.
type: Option<String>Probe only one protocol: pmp, pcp or upnp. All three by default.
gateway_addr: Option<String>Probe this gateway rather than the one the daemon found. Must be given
together with self_addr.
self_addr: Option<String>The address to claim as this node’s own. Must be given together with
gateway_addr.
log_http: Option<bool>Report every HTTP request and response the probe made.
Trait Implementations§
Source§impl Debug for PortmapParams
impl Debug for PortmapParams
Source§impl<'de> Deserialize<'de> for PortmapParams
impl<'de> Deserialize<'de> for PortmapParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PortmapParams
impl JsonSchema for PortmapParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PortmapParams
impl RefUnwindSafe for PortmapParams
impl Send for PortmapParams
impl Sync for PortmapParams
impl Unpin for PortmapParams
impl UnsafeUnpin for PortmapParams
impl UnwindSafe for PortmapParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more