Macro __rama_from_into_traits
macro_rules! __rama_from_into_traits {
() => { ... };
}
Expand description
Rama alternative for From
,Into
,TryFrom
to workaround the orphan rule
Orphan rule happens because we neither own the type or the trait where we want to define their actual implementation.
By adding these traits to crates where we have this problem we can workaround that. This will become the standard approach where the normal from/into doesn’t work. Main use case right now for this trait is to support defining conversions from rama tls types (rama-net) to external types (eg rustls) in tls crates (eg rama-tls-rustls). This macro should be called from the root module.