pub fn remote_public_key(&self) -> Result<&[u8], OssuaryError> {
        match self.remote_auth.public_key {
            None => Err(OssuaryError::InvalidKey),
            Some(ref p) => Ok(p.as_bytes()),
        }
    }
/// Get the remote host's authentication public key
///
/// When a connection is established, or during the initial handshake after
/// reeiving an [`OssuaryError::UntrustedServer`] response, this returns the
/// remote side's authentication public key.  This is typically needed by a
/// client to get the remote server's key for a Trust-On-First-Use scheme.
Get the remote host's authentication public key
When a connection is established, or during the initial handshake after
reeiving an [`OssuaryError::UntrustedServer`] response, this returns the
remote side's authentication public key.  This is typically needed by a
client to get the remote server's key for a Trust-On-First-Use scheme.
Get the remote host ' s authentication public key When a connection is established or during the initial handshake after reeiving an [ ` OssuaryError :: UntrustedServer ` ] response this returns the remote side ' s authentication public key . This is typically needed by a client to get the remote server ' s key for a Trust - On - First - Use scheme .
pub fn remote_public_key(&self) -> Result<&[u8], OssuaryError> {
        match self.remote_auth.public_key {
            None => Err(OssuaryError::InvalidKey),
            Some(ref p) => Ok(p.as_bytes()),
        }
    }
pub fn remote_public_key ( & self ) -> Result < & [ u8 ] , OssuaryError > { match self . remote_auth . public_key { None => Err ( OssuaryError :: InvalidKey ) , Some ( ref p ) => Ok ( p . as_bytes ( ) ) , } }
Get the remote host's authentication public key
When a connection is established, or during the initial handshake after
reeiving an [`OssuaryError::UntrustedServer`] response, this returns the
remote side's authentication public key.
Get the remote host ' s authentication public key When a connection is established or during the initial handshake after reeiving an [ ` OssuaryError :: UntrustedServer ` ] response this returns the remote side ' s authentication public key .
&self
&self