Trait PolicyState
pub trait PolicyState {
type Record;
// Required methods
fn into_record(self) -> Self::Record;
fn load_record(&self, record: Self::Record) -> Self;
}Expand description
The state of a policy.
Required Associated Types§
type Record
type Record
The type of the record.
Required Methods§
fn into_record(self) -> Self::Record
fn into_record(self) -> Self::Record
Convert the state to a record.
fn load_record(&self, record: Self::Record) -> Self
fn load_record(&self, record: Self::Record) -> Self
Load the state from a record.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".