[−][src]Enum natpmp::Error
NAT-PMP error.
Note
These errors are for compatibility only:
Examples
use natpmp::*; let err = Error::NATPMP_ERR_CANNOTGETGATEWAY; println!("{}", err);
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 Eq for Error
[src]
impl Eq for Error
impl Copy for Error
[src]
impl Copy for Error
impl PartialEq<Error> for Error
[src]
impl PartialEq<Error> for Error
fn eq(&self, other: &Error) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl Clone for Error
[src]
impl Clone for Error
fn clone(&self) -> Error | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
impl Debug for Error
impl Display for Error
[src]
impl Display for Error
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |