Struct proxy_stream::ProxyStream
source · 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 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