pub enum InterruptedStream {
Socks5(InterruptedSocks5),
}
Variants§
Socks5(InterruptedSocks5)
Implementations§
Source§impl InterruptedStream
impl InterruptedStream
pub async fn serve( self, stream: impl AsyncSocket, ) -> Result<(), ProxyStreamError>
pub async fn connect(self) -> Result<impl AsyncSocket, ProxyStreamError>
pub async fn replay_error( self, replay: ReplayError, ) -> Result<(), ProxyStreamError>
pub fn addr(&self) -> &DestinationAddress
pub fn command(&self) -> Command
Auto Trait Implementations§
impl Freeze for InterruptedStream
impl !RefUnwindSafe for InterruptedStream
impl Send for InterruptedStream
impl !Sync for InterruptedStream
impl Unpin for InterruptedStream
impl !UnwindSafe for InterruptedStream
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