pub enum Action {
GetExternalIPAddress,
GetStatusInfo,
AddPortMapping(AddPortMappingParams),
DeletePortMapping(DeletePortMappingParams),
GetGenericPortMappingEntry(GetGenericPortMappingEntryParams),
GetSpecificPortMappingEntry(GetSpecificPortMappingEntryParams),
GetCommonLinkProperties,
GetTotalBytesReceived,
GetTotalBytesSent,
Any,
}Expand description
UPnP IGD actions that can be matched against.
Variants§
GetExternalIPAddress
Get the external IP address of the gateway.
GetStatusInfo
Get the connection status information.
AddPortMapping(AddPortMappingParams)
Add a port mapping.
DeletePortMapping(DeletePortMappingParams)
Delete a port mapping.
GetGenericPortMappingEntry(GetGenericPortMappingEntryParams)
Get a port mapping entry by index.
GetSpecificPortMappingEntry(GetSpecificPortMappingEntryParams)
Get a specific port mapping entry.
GetCommonLinkProperties
Get common link properties.
GetTotalBytesReceived
Get total bytes received.
GetTotalBytesSent
Get total bytes sent.
Any
Match any action (wildcard).
Implementations§
Source§impl Action
impl Action
Sourcepub fn add_port_mapping() -> AddPortMappingBuilder
pub fn add_port_mapping() -> AddPortMappingBuilder
Create an AddPortMapping action with matching parameters.
Sourcepub fn delete_port_mapping() -> DeletePortMappingBuilder
pub fn delete_port_mapping() -> DeletePortMappingBuilder
Create a DeletePortMapping action with matching parameters.
Sourcepub fn get_generic_port_mapping_entry() -> GetGenericPortMappingEntryBuilder
pub fn get_generic_port_mapping_entry() -> GetGenericPortMappingEntryBuilder
Create a GetGenericPortMappingEntry action with matching parameters.
Sourcepub fn get_specific_port_mapping_entry() -> GetSpecificPortMappingEntryBuilder
pub fn get_specific_port_mapping_entry() -> GetSpecificPortMappingEntryBuilder
Create a GetSpecificPortMappingEntry action with matching parameters.
Trait Implementations§
Source§impl From<AddPortMappingBuilder> for Action
impl From<AddPortMappingBuilder> for Action
Source§fn from(builder: AddPortMappingBuilder) -> Self
fn from(builder: AddPortMappingBuilder) -> Self
Converts to this type from the input type.
Source§impl From<DeletePortMappingBuilder> for Action
impl From<DeletePortMappingBuilder> for Action
Source§fn from(builder: DeletePortMappingBuilder) -> Self
fn from(builder: DeletePortMappingBuilder) -> Self
Converts to this type from the input type.
Source§impl From<GetGenericPortMappingEntryBuilder> for Action
impl From<GetGenericPortMappingEntryBuilder> for Action
Source§fn from(builder: GetGenericPortMappingEntryBuilder) -> Self
fn from(builder: GetGenericPortMappingEntryBuilder) -> Self
Converts to this type from the input type.
Source§impl From<GetSpecificPortMappingEntryBuilder> for Action
impl From<GetSpecificPortMappingEntryBuilder> for Action
Source§fn from(builder: GetSpecificPortMappingEntryBuilder) -> Self
fn from(builder: GetSpecificPortMappingEntryBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more