Skip to main content

RequestableInterface

Trait RequestableInterface 

Source
pub trait RequestableInterface {
    // Required methods
    fn get_interface_name() -> &'static str;
    fn get_interface_version() -> u32;
    unsafe fn from_raw_interface(iface: SMInterface) -> Self;
}

Required Methods§

Source

fn get_interface_name() -> &'static str

Source

fn get_interface_version() -> u32

Source

unsafe fn from_raw_interface(iface: SMInterface) -> Self

§Safety

Only for use internally by IShareSys::request_interface, which always knows the correct type.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§