pub trait FromMap {
type Error: From<RocketmqError>;
type Target;
// Required method
fn from(
map: &HashMap<CheetahString, CheetahString>,
) -> Result<Self::Target, Self::Error>;
}
Required Associated Types§
Required Methods§
Sourcefn from(
map: &HashMap<CheetahString, CheetahString>,
) -> Result<Self::Target, Self::Error>
fn from( map: &HashMap<CheetahString, CheetahString>, ) -> Result<Self::Target, Self::Error>
Converts the implementing type from a map.
Returns an instance of Self::Target
that is created from the provided map.
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.