Skip to main content

WithoutTransient

Type Alias WithoutTransient 

Source
pub type WithoutTransient<L> = <L as LaneProfile>::WithoutTransient;
Expand description

L with its transient lane narrowed away — sugar for LaneProfile::WithoutTransient, which is what narrow_transient and retry return through. Narrowing is a projection on the profile, not a second family of carriers: Fault<WithoutTransient<L>> is an ordinary Fault whose Transient slot is uninhabited, and an exhausted retry arrives as Fatal(Exhausted).

Prefer naming the resulting profile directly wherever you can — narrowing lanes!(Transient, Fatal) yields lanes!(Fatal), and writing that keeps a lane the caller can never see out of the signature. This alias is for code generic over L, where there is no concrete name to reach for.