pub trait FromArg<T>: Sized {
type Error: StdError;
// Required method
async fn from_arg(
container: &Container,
arg: T,
) -> Result<Self, Self::Error>;
}
Expand description
Trait for converting an argument from one type to another.
Required Associated Types§
Required 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.