pub struct TransportConnection { /* private fields */ }
Implementations§
Source§impl TransportConnection
impl TransportConnection
pub fn new( trace: &Box<dyn Tracer>, channel: Box<dyn Channel>, ) -> Box<TransportConnection>
pub fn on_remote_channel(&mut self) -> Result<Receiver<Box<dyn Channel>>>
pub fn off_remote_channel( &mut self, on_channel: Receiver<Box<dyn Channel>>, ) -> Result<()>
pub async fn channel( &mut self, label: impl AsRef<str> + ToString, buffer_size: u32, ) -> Result<Box<dyn Channel>>
Auto Trait Implementations§
impl Freeze for TransportConnection
impl !RefUnwindSafe for TransportConnection
impl Send for TransportConnection
impl Sync for TransportConnection
impl Unpin for TransportConnection
impl !UnwindSafe for TransportConnection
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