pub(super) trait HasHandshakeOutput<O> {
// Required method
fn take_output(&mut self) -> Option<O>;
}
Available on crate features
proxy-handshake
or client-handshake
only.Expand description
Handshake
structs whose output can be obtained
Derive this with
#[derive_deftly(Handshake)]
.
Required Methods§
Sourcefn take_output(&mut self) -> Option<O>
fn take_output(&mut self) -> Option<O>
Obtain the output from a handshake completed with .handshake
Call only if Action
said finished
, and then only once.
Otherwise, will return None
.
Implementors§
impl HasHandshakeOutput<<Option<SocksReply> as IntoIterator>::Item> for SocksClientHandshake
Available on crate feature
client-handshake
only.impl HasHandshakeOutput<<Option<SocksRequest> as IntoIterator>::Item> for SocksProxyHandshake
Available on crate feature
proxy-handshake
only.