pub type UFrame = Frame<dyn AnyUFrameMeta>;
Expand description
A smart pointer to an untyped frame with any metadata.
The metadata of the frame is not known at compile time but the frame must
be an untyped one. An UFrame
as a parameter accepts any type of
untyped frame metadata.
The usage of this frame will not be changed while this object is alive.
Aliased Type§
struct UFrame { /* private fields */ }
Trait Implementations§
Source§impl<M: AnyUFrameMeta> From<Frame<M>> for UFrame
impl<M: AnyUFrameMeta> From<Frame<M>> for UFrame
Source§impl TryFrom<Frame<dyn AnyFrameMeta>> for UFrame
impl TryFrom<Frame<dyn AnyFrameMeta>> for UFrame
Source§fn try_from(dyn_frame: Frame<dyn AnyFrameMeta>) -> Result<Self, Self::Error>
fn try_from(dyn_frame: Frame<dyn AnyFrameMeta>) -> Result<Self, Self::Error>
Tries converting a Frame<dyn AnyFrameMeta>
into UFrame
.
If the usage of the frame is not the same as the expected usage, it will return the dynamic frame itself as is.
Source§type Error = Frame<dyn AnyFrameMeta>
type Error = Frame<dyn AnyFrameMeta>
The type returned in the event of a conversion error.