pub struct ControlStream {
pub stream: BoxStream,
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. The stream is boxed so plaintext TCP and TLS-wrapped control channels share the relay path.
Fields§
§stream: BoxStream§peer_addr: SocketAddr§redacted_auth: Option<String>Auto Trait Implementations§
impl !RefUnwindSafe for ControlStream
impl !Sync for ControlStream
impl !UnwindSafe for ControlStream
impl Freeze for ControlStream
impl Send for ControlStream
impl Unpin for ControlStream
impl UnsafeUnpin 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