pub struct EtwProviderError {
pub provider: Cow<'static, str>,
pub reason: Cow<'static, str>,
pub error_code: Option<i32>,
}Expand description
ETW provider error.
Fields§
§provider: Cow<'static, str>The provider name or GUID.
reason: Cow<'static, str>Reason for failure.
error_code: Option<i32>Windows error code if available.
Implementations§
Source§impl EtwProviderError
impl EtwProviderError
Sourcepub fn new(
provider: impl Into<Cow<'static, str>>,
reason: impl Into<Cow<'static, str>>,
) -> Self
pub fn new( provider: impl Into<Cow<'static, str>>, reason: impl Into<Cow<'static, str>>, ) -> Self
Create a new provider error.
Trait Implementations§
Source§impl Debug for EtwProviderError
impl Debug for EtwProviderError
Source§impl Display for EtwProviderError
impl Display for EtwProviderError
Source§impl Error for EtwProviderError
impl Error for EtwProviderError
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 EtwProviderError
impl RefUnwindSafe for EtwProviderError
impl Send for EtwProviderError
impl Sync for EtwProviderError
impl Unpin for EtwProviderError
impl UnsafeUnpin for EtwProviderError
impl UnwindSafe for EtwProviderError
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