pub trait FrameVariant: Into<Frame> {
const FLAGS_MASK: FrameFlags;
const REQUIRED_FLAGS: FrameFlags = _;
// Required method
fn flags(&self) -> FrameFlags;
}
Expand description
A trait to be implemented by all frame variants.
Required Associated Constants§
Sourceconst FLAGS_MASK: FrameFlags
const FLAGS_MASK: FrameFlags
Mask that flags of a variant must be in.
Provided Associated Constants§
Sourceconst REQUIRED_FLAGS: FrameFlags = _
const REQUIRED_FLAGS: FrameFlags = _
Flags that must be set for a variant.
Required Methods§
Sourcefn flags(&self) -> FrameFlags
fn flags(&self) -> FrameFlags
Gets the flags of the variant.
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.