Crate natpmp

Crate natpmp 

Source
Expand description

§natpmp

natpmp is a NAT-PMP IETF RFC 6886 client library in rust. It is a rust implementation of the c library natpmp.

Structs§

GatewayResponse
Gateway response.
MappingResponse
Mapping response.
Natpmp
NAT-PMP main struct.
NatpmpAsync
NAT-PMP async client

Enums§

Error
NAT-PMP error.
Protocol
NAT-PMP mapping protocol.
Response
NAT-PMP response.
ResponseType
NAT-PMP response type.

Constants§

NATPMP_PORT
NAT-PMP server port as defined by rfc6886.

Traits§

AsyncUdpSocket
A wrapper trait for async udpsocket.

Functions§

get_default_gateway
Get default gateway.
new_natpmp_async_with
Create a NAT-PMP object with async udpsocket and gateway
new_tokio_natpmp
Create a tokio NAT-PMP object with default gateway
new_tokio_natpmp_with
Create a tokio NAT-PMP object with specified gateway.

Type Aliases§

Result
NAT-PMP result.