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§
Sourcefn all_features() -> Vec<&'static str>
fn all_features() -> Vec<&'static str>
Returns all features associated with the allowlist struct.
Sourcefn to_features(&self) -> Vec<&'static str>
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.