#[non_exhaustive]pub enum FirewallBuildError {
LedgerOpen {
reason: String,
},
}Expand description
FirewallBuilder::build 的错误(SDK-owned,#[non_exhaustive] 允许将来加 variant 不破 SemVer)。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LedgerOpen
审计账本打开失败(in-memory 初始化或文件路径不可用)。reason 为脱敏文本(无原文 / 无 PII)。
Trait Implementations§
Source§impl Debug for FirewallBuildError
impl Debug for FirewallBuildError
Source§impl Display for FirewallBuildError
impl Display for FirewallBuildError
Source§impl Error for FirewallBuildError
impl Error for FirewallBuildError
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 FirewallBuildError
impl RefUnwindSafe for FirewallBuildError
impl Send for FirewallBuildError
impl Sync for FirewallBuildError
impl Unpin for FirewallBuildError
impl UnsafeUnpin for FirewallBuildError
impl UnwindSafe for FirewallBuildError
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