pub trait AsContext { fn offer<R>(self, op: impl FnOnce() -> R) -> R; }
Implemented by types that can offer themselves as context to a child call.
Call op within the context of a Layer containing self.
op
Layer
self