Struct connection_utils::TransportConnection
source · [−]pub struct TransportConnection { /* private fields */ }
Implementations
sourceimpl 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 !RefUnwindSafe for TransportConnection
impl Send for TransportConnection
impl Sync for TransportConnection
impl Unpin for TransportConnection
impl !UnwindSafe for TransportConnection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more