pub trait ExtResource:
Send
+ Sync
+ 'static {
type Marker: 'static;
}Expand description
A value that can be registered in an extension’s opaque-object table via
ExtContext::register.
This mirrors dolang_rpc::session::OpaqueResource, which extension authors do not
implement directly — that would require depending on dolang-rpc and
would leak its Marker-keyed object-table design into every extension
crate’s own trait-impl list.
Required Associated Types§
Sourcetype Marker: 'static
type Marker: 'static
A trivial type naming this resource on the wire. It must name only
this one — see ExtContext::register.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".