Skip to main content

PinnedHandle

Trait PinnedHandle 

Source
pub trait PinnedHandle {
    // Required method
    fn ticket(&self) -> HostRootTicket;
}
Expand description

v1.3 Phase SR — common trait for handle types that wrap a HostRootTicket. Lets Lua::unpin accept LuaFunction / LuaTable / LuaRoot uniformly.

Required Methods§

Source

fn ticket(&self) -> HostRootTicket

The ticket this handle wraps.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§