pub struct EndpointPair<Ingress, Egress>{
pub server: Arc<dyn Endpoint<Ingress, Egress>>,
pub client: Arc<dyn Endpoint<Egress, Ingress>>,
}Expand description
A matched pair of endpoints representing both sides of a transport channel.
server: the runtime/handler side — receivesIngress, sendsEgressclient: the caller/consumer side — receivesEgress, sendsIngress
Fields§
§server: Arc<dyn Endpoint<Ingress, Egress>>§client: Arc<dyn Endpoint<Egress, Ingress>>Auto Trait Implementations§
impl<Ingress, Egress> Freeze for EndpointPair<Ingress, Egress>
impl<Ingress, Egress> !RefUnwindSafe for EndpointPair<Ingress, Egress>
impl<Ingress, Egress> Send for EndpointPair<Ingress, Egress>
impl<Ingress, Egress> Sync for EndpointPair<Ingress, Egress>
impl<Ingress, Egress> Unpin for EndpointPair<Ingress, Egress>
impl<Ingress, Egress> !UnwindSafe for EndpointPair<Ingress, Egress>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more