pub trait Backend:
Sized
+ Send
+ Sync {
const DEFAULT_PATH: &'static str;
// Required methods
fn path(&self) -> &Path;
fn init(
project: &Project,
) -> impl Future<Output = Result<Self, FailToInitBackend>> + Send;
}Expand description
Trait for backends in a WaterUI project.
Required Associated Constants§
Sourceconst DEFAULT_PATH: &'static str
const DEFAULT_PATH: &'static str
The default relative path for this backend (e.g., “android”, “apple”).
Required Methods§
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.