Trait IntoNativeTrustReloadTrigger
pub trait IntoNativeTrustReloadTrigger<Kind> {
type Stream: Stream<Item = ()> + Send + 'static;
// Required method
fn into_reload_stream(self) -> Self::Stream;
}Available on crate feature
tls only.Expand description
Turn a stream or a tuple of reload sources into native TLS trust refresh events.
Each item requests a refresh. Tuples of up to twelve sources can contain streams, nested tuples, or custom implementations of this trait.
Kind distinguishes implementations so that a stream and a tuple can both
implement this trait. For streams it is (), and for tuples it is the tuple
of their members’ markers. Callers normally let Rust infer the marker.
A custom source wrapper can use its own marker type.
Required Associated Types§
Required Methods§
fn into_reload_stream(self) -> Self::Stream
fn into_reload_stream(self) -> Self::Stream
Combine these sources into one stream of refresh requests.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".