Settings
Help

HasHandshakeOutput

Trait HasHandshakeOutput 

Source
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§

Source

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§

Source§

impl HasHandshakeOutput<<Option<SocksReply> as IntoIterator>::Item> for SocksClientHandshake

Available on crate feature client-handshake only.
Source§

impl HasHandshakeOutput<<Option<SocksRequest> as IntoIterator>::Item> for SocksProxyHandshake

Available on crate feature proxy-handshake only.