pub enum WfpError {
EngineOpenFailed,
EngineCloseFailed,
FilterAddFailed(String),
FilterDeleteFailed(String),
TransactionBeginFailed,
TransactionCommitFailed,
TransactionAbortFailed,
InsufficientPermissions,
ServiceNotAvailable,
Win32Error {
code: u32,
message: String,
},
Other(String),
}Expand description
WFP operation errors
Variants§
EngineOpenFailed
Failed to open WFP engine session
EngineCloseFailed
Failed to close WFP engine session
FilterAddFailed(String)
Failed to add filter
FilterDeleteFailed(String)
Failed to delete filter
TransactionBeginFailed
Failed to begin transaction
TransactionCommitFailed
Failed to commit transaction
TransactionAbortFailed
Failed to abort transaction
InsufficientPermissions
Insufficient permissions (must run as administrator)
ServiceNotAvailable
WFP service not available
Win32Error
Win32 API error with code and message
Other(String)
Generic error with description
Trait Implementations§
Source§impl Error for WfpError
impl Error for WfpError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for WfpError
impl RefUnwindSafe for WfpError
impl Send for WfpError
impl Sync for WfpError
impl Unpin for WfpError
impl UnsafeUnpin for WfpError
impl UnwindSafe for WfpError
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