Trait Mode

Source
pub trait Mode: 'static {
    // Required methods
    fn is_read_only() -> bool;
    fn is_secondary() -> bool;

    // Provided method
    fn is_primary() -> bool { ... }
}
Expand description

Indicates whether a database is opened in read-only or write mode.

Required Methods§

Provided 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.

Implementors§