pub enum PhyTraceError {
Show 13 variants
Builder(BuilderError),
Validation(String),
Transport(String),
Buffer(BufferError),
Config(ConfigError),
License(LicenseError),
Serialization(String),
Yaml(Error),
Io(Error),
Provenance(String),
Agent(String),
Timeout(String),
Crypto(String),
}Expand description
Top-level error type for the PhyTrace SDK.
Variants§
Builder(BuilderError)
Error during event building
Validation(String)
Validation error
Transport(String)
Transport error
Buffer(BufferError)
Buffer error
Config(ConfigError)
Configuration error
License(LicenseError)
License validation error
Serialization(String)
Serialization error
Yaml(Error)
YAML parsing error
Io(Error)
IO error
Provenance(String)
Provenance/signing error
Agent(String)
Agent lifecycle error
Timeout(String)
Timeout error
Crypto(String)
Cryptographic error
Trait Implementations§
Source§impl Debug for PhyTraceError
impl Debug for PhyTraceError
Source§impl Display for PhyTraceError
impl Display for PhyTraceError
Source§impl Error for PhyTraceError
impl Error for PhyTraceError
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<BufferError> for PhyTraceError
impl From<BufferError> for PhyTraceError
Source§fn from(source: BufferError) -> Self
fn from(source: BufferError) -> Self
Converts to this type from the input type.
Source§impl From<BuilderError> for PhyTraceError
impl From<BuilderError> for PhyTraceError
Source§fn from(source: BuilderError) -> Self
fn from(source: BuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for PhyTraceError
impl From<ConfigError> for PhyTraceError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PhyTraceError
impl From<Error> for PhyTraceError
Source§impl From<Error> for PhyTraceError
impl From<Error> for PhyTraceError
Source§impl From<LicenseError> for PhyTraceError
impl From<LicenseError> for PhyTraceError
Source§fn from(source: LicenseError) -> Self
fn from(source: LicenseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PhyTraceError
impl !RefUnwindSafe for PhyTraceError
impl Send for PhyTraceError
impl Sync for PhyTraceError
impl Unpin for PhyTraceError
impl !UnwindSafe for PhyTraceError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP