Trait NestedConnectionTransfer
pub trait NestedConnectionTransfer:
Send
+ Sync
+ 'static {
// Required method
fn transfer(&self, outer: &Extensions, nested: &Extensions);
// Provided methods
fn and<T>(self, other: T) -> NestedConnectionTransferAnd<Self, T>
where T: NestedConnectionTransfer,
Self: Sized { ... }
fn into_shared(self) -> SharedNestedConnectionTransfer
where Self: Sized { ... }
}Expand description
What a connection nested on another one keeps from it.
A Extensions::fork_nested_connection boundary stops every
ExtensionScope::Connection fact of the connection underneath. Some of
those facts still constrain the nested endpoint, and only the site that
establishes the nesting knows which: the extension types cannot say, and
neither can the layers that published them. So every nesting site owns a
transfer and exposes it for configuration.
Required Methods§
fn transfer(&self, outer: &Extensions, nested: &Extensions)
fn transfer(&self, outer: &Extensions, nested: &Extensions)
Put onto nested what it keeps from the outer chain it forks from.
Provided Methods§
fn and<T>(self, other: T) -> NestedConnectionTransferAnd<Self, T>where
T: NestedConnectionTransfer,
Self: Sized,
fn and<T>(self, other: T) -> NestedConnectionTransferAnd<Self, T>where
T: NestedConnectionTransfer,
Self: Sized,
Run self, then other.
Erase and share this transfer, so a connector can hold it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".