pub struct ProxyStream { /* private fields */ }
Implementations§
Source§impl ProxyStream
impl ProxyStream
pub fn new(proxy_type: ProxyType) -> Self
pub async fn accept( &self, stream: impl AsyncSocket, ) -> Result<InterruptedStream, ProxyStreamError>
pub async fn connect( &self, stream: impl AsyncSocket, addr: impl ToSocketDestination, ) -> Result<impl AsyncSocket, ProxyStreamError>
Auto Trait Implementations§
impl Freeze for ProxyStream
impl RefUnwindSafe for ProxyStream
impl Send for ProxyStream
impl Sync for ProxyStream
impl Unpin for ProxyStream
impl UnwindSafe for ProxyStream
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