pub trait ToStatic: Clone {
type Static: 'static + Clone + Send + Sync;
// Required method
fn to_static(&self) -> Self::Static;
}Expand description
A trait for converting types with lifetime parameters to equivalent types with ’static lifetime.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
Source§impl ToStatic for TelemetryMessage<'_>
Available on crate feature alloc only.
impl ToStatic for TelemetryMessage<'_>
Available on crate feature
alloc only.type Static = TelemetryMessage<'static>
Source§impl ToStatic for TracingMessage<'_>
Available on crate feature alloc only.
impl ToStatic for TracingMessage<'_>
Available on crate feature
alloc only.type Static = TracingMessage<'static>
Source§impl ToStatic for InstanceMessage<'_>
Available on crate feature alloc only.
impl ToStatic for InstanceMessage<'_>
Available on crate feature
alloc only.type Static = InstanceMessage<'static>
Source§impl ToStatic for LogMessage<'_>
Available on crate feature alloc only.
impl ToStatic for LogMessage<'_>
Available on crate feature
alloc only.type Static = LogMessage<'static>
Source§impl ToStatic for SpanAddEventMessage<'_>
Available on crate feature alloc only.
impl ToStatic for SpanAddEventMessage<'_>
Available on crate feature
alloc only.type Static = SpanAddEventMessage<'static>
Source§impl ToStatic for SpanCreateMessage<'_>
Available on crate feature alloc only.
impl ToStatic for SpanCreateMessage<'_>
Available on crate feature
alloc only.type Static = SpanCreateMessage<'static>
Source§impl ToStatic for SpanSetAttributeMessage<'_>
Available on crate feature alloc only.
impl ToStatic for SpanSetAttributeMessage<'_>
Available on crate feature
alloc only.