Struct godot::engine::upnp::UpnpResult

pub struct UpnpResult { /* private fields */ }
Expand description

Godot enum name: UPNPResult.

Implementations§

§

impl UpnpResult

pub const SUCCESS: UpnpResult = _

Godot enumerator name: UPNP_RESULT_SUCCESS

pub const NOT_AUTHORIZED: UpnpResult = _

Godot enumerator name: UPNP_RESULT_NOT_AUTHORIZED

pub const PORT_MAPPING_NOT_FOUND: UpnpResult = _

Godot enumerator name: UPNP_RESULT_PORT_MAPPING_NOT_FOUND

pub const INCONSISTENT_PARAMETERS: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INCONSISTENT_PARAMETERS

pub const NO_SUCH_ENTRY_IN_ARRAY: UpnpResult = _

Godot enumerator name: UPNP_RESULT_NO_SUCH_ENTRY_IN_ARRAY

pub const ACTION_FAILED: UpnpResult = _

Godot enumerator name: UPNP_RESULT_ACTION_FAILED

pub const SRC_IP_WILDCARD_NOT_PERMITTED: UpnpResult = _

Godot enumerator name: UPNP_RESULT_SRC_IP_WILDCARD_NOT_PERMITTED

pub const EXT_PORT_WILDCARD_NOT_PERMITTED: UpnpResult = _

Godot enumerator name: UPNP_RESULT_EXT_PORT_WILDCARD_NOT_PERMITTED

pub const INT_PORT_WILDCARD_NOT_PERMITTED: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INT_PORT_WILDCARD_NOT_PERMITTED

pub const REMOTE_HOST_MUST_BE_WILDCARD: UpnpResult = _

Godot enumerator name: UPNP_RESULT_REMOTE_HOST_MUST_BE_WILDCARD

pub const EXT_PORT_MUST_BE_WILDCARD: UpnpResult = _

Godot enumerator name: UPNP_RESULT_EXT_PORT_MUST_BE_WILDCARD

pub const NO_PORT_MAPS_AVAILABLE: UpnpResult = _

Godot enumerator name: UPNP_RESULT_NO_PORT_MAPS_AVAILABLE

pub const CONFLICT_WITH_OTHER_MECHANISM: UpnpResult = _

Godot enumerator name: UPNP_RESULT_CONFLICT_WITH_OTHER_MECHANISM

pub const CONFLICT_WITH_OTHER_MAPPING: UpnpResult = _

Godot enumerator name: UPNP_RESULT_CONFLICT_WITH_OTHER_MAPPING

pub const SAME_PORT_VALUES_REQUIRED: UpnpResult = _

Godot enumerator name: UPNP_RESULT_SAME_PORT_VALUES_REQUIRED

pub const ONLY_PERMANENT_LEASE_SUPPORTED: UpnpResult = _

Godot enumerator name: UPNP_RESULT_ONLY_PERMANENT_LEASE_SUPPORTED

pub const INVALID_GATEWAY: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INVALID_GATEWAY

pub const INVALID_PORT: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INVALID_PORT

pub const INVALID_PROTOCOL: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INVALID_PROTOCOL

pub const INVALID_DURATION: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INVALID_DURATION

pub const INVALID_ARGS: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INVALID_ARGS

pub const INVALID_RESPONSE: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INVALID_RESPONSE

pub const INVALID_PARAM: UpnpResult = _

Godot enumerator name: UPNP_RESULT_INVALID_PARAM

pub const HTTP_ERROR: UpnpResult = _

Godot enumerator name: UPNP_RESULT_HTTP_ERROR

pub const SOCKET_ERROR: UpnpResult = _

Godot enumerator name: UPNP_RESULT_SOCKET_ERROR

pub const MEM_ALLOC_ERROR: UpnpResult = _

Godot enumerator name: UPNP_RESULT_MEM_ALLOC_ERROR

pub const NO_GATEWAY: UpnpResult = _

Godot enumerator name: UPNP_RESULT_NO_GATEWAY

pub const NO_DEVICES: UpnpResult = _

Godot enumerator name: UPNP_RESULT_NO_DEVICES

pub const UNKNOWN_ERROR: UpnpResult = _

Godot enumerator name: UPNP_RESULT_UNKNOWN_ERROR

Trait Implementations§

§

impl Clone for UpnpResult

§

fn clone(&self) -> UpnpResult

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for UpnpResult

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl EngineEnum for UpnpResult

§

fn try_from_ord(ord: i32) -> Option<UpnpResult>

§

fn ord(self) -> i32

Ordinal value of the enumerator, as specified in Godot. This is not necessarily unique.
§

fn from_ord(ord: i32) -> Self

§

impl FromGodot for UpnpResult

§

fn try_from_godot( via: <UpnpResult as GodotConvert>::Via ) -> Result<UpnpResult, ConvertError>

Performs the conversion.
§

fn from_godot(via: Self::Via) -> Self

⚠️ Performs the conversion. Read more
§

fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>

Performs the conversion from a Variant.
§

fn from_variant(variant: &Variant) -> Self

⚠️ Performs the conversion from a Variant. Read more
§

impl GodotConvert for UpnpResult

§

type Via = i32

The type through which Self is represented in Godot.
§

impl Hash for UpnpResult

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq for UpnpResult

§

fn eq(&self, other: &UpnpResult) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl ToGodot for UpnpResult

§

fn to_godot(&self) -> <UpnpResult as GodotConvert>::Via

Converts this type to the Godot type by reference, usually by cloning.
§

fn into_godot(self) -> Self::Via

Converts this type to the Godot type. Read more
§

fn to_variant(&self) -> Variant

Converts this type to a Variant.
§

impl Copy for UpnpResult

§

impl Eq for UpnpResult

§

impl StructuralPartialEq for UpnpResult

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.