pub struct ProxiedConnection { /* private fields */ }Implementations§
Source§impl ProxiedConnection
impl ProxiedConnection
pub async fn open_uni(&self) -> Result<SendStream>
pub async fn open_bi(&self) -> Result<(SendStream, RecvStream)>
pub async fn accept_uni(&self) -> RecvStream
pub async fn accept_bi(&self) -> (SendStream, RecvStream)
pub async fn read_datagram(&self) -> Bytes
pub fn send_datagram(&self, data: Bytes) -> Result<()>
Trait Implementations§
Source§impl Clone for ProxiedConnection
impl Clone for ProxiedConnection
Source§fn clone(&self) -> ProxiedConnection
fn clone(&self) -> ProxiedConnection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ProxiedConnection
impl !UnwindSafe for ProxiedConnection
impl Freeze for ProxiedConnection
impl Send for ProxiedConnection
impl Sync for ProxiedConnection
impl Unpin for ProxiedConnection
impl UnsafeUnpin for ProxiedConnection
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