pub enum WindowsFirewallError {
CoInitializeExFailed(String),
WindowsError(Error),
RuleAlreadyExists,
InvalidNetFwAction,
InvalidNetFwProfile,
InvalidNetFwRuleDirection,
InvalidNetFwIpProtocol,
EmptyHashSet,
}Expand description
Deriving common traits to automatically implement error handling functionality.
Variants§
CoInitializeExFailed(String)
Error returned when CoInitializeEx fails during COM initialization.
WindowsError(Error)
A general Windows API error wrapped from the windows_result crate.
RuleAlreadyExists
Indicates that the specified firewall rule already exists.
InvalidNetFwAction
Indicates that an invalid value was used for NET_FW_ACTION.
InvalidNetFwProfile
Indicates that an invalid value was used for NET_FW_PROFILE.
InvalidNetFwRuleDirection
Indicates that an invalid value was used for NET_FW_RULE_DIRECTION.
InvalidNetFwIpProtocol
Indicates that an invalid value was used for NET_FW_IP_PROTOCOL.
EmptyHashSet
Indicates that a required HashSet is either empty or None.
Trait Implementations§
Source§impl Debug for WindowsFirewallError
impl Debug for WindowsFirewallError
Source§impl Display for WindowsFirewallError
impl Display for WindowsFirewallError
Source§impl Error for WindowsFirewallError
impl Error for WindowsFirewallError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for WindowsFirewallError
impl From<Error> for WindowsFirewallError
Source§impl PartialEq for WindowsFirewallError
impl PartialEq for WindowsFirewallError
impl StructuralPartialEq for WindowsFirewallError
Auto Trait Implementations§
impl Freeze for WindowsFirewallError
impl RefUnwindSafe for WindowsFirewallError
impl Send for WindowsFirewallError
impl Sync for WindowsFirewallError
impl Unpin for WindowsFirewallError
impl UnwindSafe for WindowsFirewallError
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