pub trait LockBefore<X> { }
Expand description
Marker trait that indicates that Self
is an ancestor of X
.
Functions and trait impls that want to apply lock ordering bounds should use
this instead of LockAfter
. Types should prefer to implement LockAfter
instead of this trait. Like From
and Into
, a blanket impl of
LockBefore
is provided for all types that implement LockAfter