pub enum TelemetryHandleError {
ChannelFull,
NotEnabled,
Io(String),
}Expand description
telemetry::record() 可能返回的错误。
Variants§
ChannelFull
Channel 满,事件被丢弃。
NotEnabled
遥测未启用(handle 是 Noop)。
Io(String)
A recorder could not write the event.
Trait Implementations§
Source§impl Clone for TelemetryHandleError
impl Clone for TelemetryHandleError
Source§impl Debug for TelemetryHandleError
impl Debug for TelemetryHandleError
Source§impl Display for TelemetryHandleError
impl Display for TelemetryHandleError
Source§impl Error for TelemetryHandleError
impl Error for TelemetryHandleError
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 Forget for TelemetryHandleError
impl Freeze for TelemetryHandleError
impl Move for TelemetryHandleError
impl RefUnwindSafe for TelemetryHandleError
impl Send for TelemetryHandleErrorwhere
RawVecInner: Send,
impl Sync for TelemetryHandleErrorwhere
RawVecInner: Sync,
impl Unpin for TelemetryHandleError
impl UnsafeUnpin for TelemetryHandleError
impl UnwindSafe for TelemetryHandleErrorwhere
RawVecInner: UnwindSafe,
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