Skip to main content

TypeTreeForUserStatic

Trait TypeTreeForUserStatic 

Source
pub trait TypeTreeForUserStatic: Send + Sync {
    // Required method
    fn get_type_tree<'a>(&'a self) -> Box<dyn TypeTreeReadContext + 'a>;
}
Expand description

Trait for providing a static reference to the type tree for a specific user. This allows subscriptions to hold a reference to the type tree.

Required Methods§

Source

fn get_type_tree<'a>(&'a self) -> Box<dyn TypeTreeReadContext + 'a>

Get the type tree read context. This may lock.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> TypeTreeForUserStatic for RwLock<T>
where T: TypeTree + Send + Sync + 'static,

Source§

fn get_type_tree<'a>(&'a self) -> Box<dyn TypeTreeReadContext + 'a>

Implementors§