pub struct TransportBinding<UpMsg, DownMsg>{
pub session: SessionId,
pub caps: TransportCapabilities,
pub upstream: Arc<dyn Endpoint<UpMsg, DownMsg>>,
pub downstream: Arc<dyn Endpoint<DownMsg, UpMsg>>,
}Expand description
Bound transport session with both sides.
upstream: caller-facing side: recvUpMsg, sendDownMsgdownstream: runtime/next-hop side: recvDownMsg, sendUpMsg
Fields§
§session: SessionId§caps: TransportCapabilities§upstream: Arc<dyn Endpoint<UpMsg, DownMsg>>§downstream: Arc<dyn Endpoint<DownMsg, UpMsg>>Auto Trait Implementations§
impl<UpMsg, DownMsg> Freeze for TransportBinding<UpMsg, DownMsg>
impl<UpMsg, DownMsg> !RefUnwindSafe for TransportBinding<UpMsg, DownMsg>
impl<UpMsg, DownMsg> Send for TransportBinding<UpMsg, DownMsg>
impl<UpMsg, DownMsg> Sync for TransportBinding<UpMsg, DownMsg>
impl<UpMsg, DownMsg> Unpin for TransportBinding<UpMsg, DownMsg>
impl<UpMsg, DownMsg> !UnwindSafe for TransportBinding<UpMsg, DownMsg>
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