pub enum Error {
Show 19 variants
NATPMP_ERR_INVALIDARGS,
NATPMP_ERR_SOCKETERROR,
NATPMP_ERR_CANNOTGETGATEWAY,
NATPMP_ERR_CLOSEERR,
NATPMP_ERR_RECVFROM,
NATPMP_ERR_NOPENDINGREQ,
NATPMP_ERR_NOGATEWAYSUPPORT,
NATPMP_ERR_CONNECTERR,
NATPMP_ERR_WRONGPACKETSOURCE,
NATPMP_ERR_SENDERR,
NATPMP_ERR_FCNTLERROR,
NATPMP_ERR_GETTIMEOFDAYERR,
NATPMP_ERR_UNSUPPORTEDVERSION,
NATPMP_ERR_UNSUPPORTEDOPCODE,
NATPMP_ERR_UNDEFINEDERROR,
NATPMP_ERR_NOTAUTHORIZED,
NATPMP_ERR_NETWORKFAILURE,
NATPMP_ERR_OUTOFRESOURCES,
NATPMP_TRYAGAIN,
}
Expand description
Variants
NATPMP_ERR_INVALIDARGS
Invalid arguments
NATPMP_ERR_SOCKETERROR
Failed to create a socket
NATPMP_ERR_CANNOTGETGATEWAY
Can not get default gateway address
NATPMP_ERR_CLOSEERR
Failed to close socket
NATPMP_ERR_RECVFROM
Failed to recvfrom socket
NATPMP_ERR_NOPENDINGREQ
No pending request
NATPMP_ERR_NOGATEWAYSUPPORT
Gateway does not support NAT-PMP
NATPMP_ERR_CONNECTERR
Failed to connect to the gateway
NATPMP_ERR_WRONGPACKETSOURCE
Packet not received from the gateway
NATPMP_ERR_SENDERR
Failed to send
NATPMP_ERR_FCNTLERROR
Failed to set nonblocking
NATPMP_ERR_GETTIMEOFDAYERR
Failed to get time
NATPMP_ERR_UNSUPPORTEDVERSION
Unsupported NAT-PMP version
NATPMP_ERR_UNSUPPORTEDOPCODE
Unsupported NAT-PMP opcode
NATPMP_ERR_UNDEFINEDERROR
Unknown NAT-PMP error
NATPMP_ERR_NOTAUTHORIZED
Not authorized
NATPMP_ERR_NETWORKFAILURE
Network failure
NATPMP_ERR_OUTOFRESOURCES
NAT-PMP out of resources
NATPMP_TRYAGAIN
Try again
Trait Implementations
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more