pub trait HeaderTryFrom<T>: Sized {
    fn try_from(val: T) -> Result<Self, ComponentCreationError>;
}
Expand description

Workaround for TryFrom,TryInto not being stable.

Required Methods

Implementors

This try from is for usability only, it is generally recommendet to use Disposition::inline()/::attachment() as it is type safe / compiler time checked, while this one isn’t