Skip to main content

CapTag

Trait CapTag 

Source
pub trait CapTag {
    type Out: ?Sized + 'static;

    // Required method
    fn try_get(cap: &Capability) -> Option<&Arc<Self::Out>>;
}
Expand description

Trait for capability tags that allow type-safe querying.

Required Associated Types§

Source

type Out: ?Sized + 'static

Required Methods§

Source

fn try_get(cap: &Capability) -> Option<&Arc<Self::Out>>

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.

Implementors§