Function get_messaging_interface

Source
pub fn get_messaging_interface() -> Result<MessagingInterface, ApiStorageError>
Expand description

Retrieves the MessagingInterface instance.

§Errors

If the internal global API storage is uninitialized because forgot to call skse::init

§Example

use commonlibsse_ng::skse::api::get_messaging_interface;

match get_messaging_interface() {
    Ok(interface) => println!("Messaging Interface: {:?}", interface),
    Err(e) => println!("Error: {}", e),
}