pub struct BridgeChannel<Req, Rsp> {
pub control: ControlHandle<Req, Rsp>,
pub data: DataHandle<Req, Rsp>,
}Expand description
A complete bridge channel: request path (Control→Data) + response path (Data→Control).
Created once, then split into Tokio-side and TPC-side handles.
Fields§
§control: ControlHandle<Req, Rsp>Tokio-side handle for sending requests and receiving responses.
data: DataHandle<Req, Rsp>TPC-side handle for receiving requests and sending responses.
Implementations§
Auto Trait Implementations§
impl<Req, Rsp> Freeze for BridgeChannel<Req, Rsp>
impl<Req, Rsp> !RefUnwindSafe for BridgeChannel<Req, Rsp>
impl<Req, Rsp> Send for BridgeChannel<Req, Rsp>
impl<Req, Rsp> Sync for BridgeChannel<Req, Rsp>
impl<Req, Rsp> Unpin for BridgeChannel<Req, Rsp>
impl<Req, Rsp> UnsafeUnpin for BridgeChannel<Req, Rsp>
impl<Req, Rsp> !UnwindSafe for BridgeChannel<Req, Rsp>
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