Trait Allowlist

Source
pub trait Allowlist {
    // Required methods
    fn all_features() -> Vec<&'static str>;
    fn to_features(&self) -> Vec<&'static str>;
}
Expand description

Defines an allowlist type.

Required Methods§

Source

fn all_features() -> Vec<&'static str>

Returns all features associated with the allowlist struct.

Source

fn to_features(&self) -> Vec<&'static str>

Returns the tauri features enabled on this allowlist.

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§