pub struct ControlStream {
pub stream: TcpStream,
pub peer_addr: SocketAddr,
pub redacted_auth: Option<String>,
}Expand description
A control stream paired with metadata, used when handing the stream off from the auth phase to the relay phase.
Fields§
§stream: TcpStream§peer_addr: SocketAddr§redacted_auth: Option<String>Auto Trait Implementations§
impl !Freeze for ControlStream
impl RefUnwindSafe for ControlStream
impl Send for ControlStream
impl Sync for ControlStream
impl Unpin for ControlStream
impl UnsafeUnpin for ControlStream
impl UnwindSafe for ControlStream
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