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§
- Gateway
Response - Gateway response.
- Mapping
Response - Mapping response.
- Natpmp
- NAT-PMP main struct.
- Natpmp
Async - NAT-PMP async client
Enums§
- Error
- NAT-PMP error.
- Protocol
- NAT-PMP mapping protocol.
- Response
- NAT-PMP response.
- Response
Type - NAT-PMP response type.
Constants§
- NATPMP_
PORT - NAT-PMP server port as defined by rfc6886.
Traits§
- Async
UdpSocket - 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.