Trait thrussh::Signer

source ·
pub trait Signer: Sized {
    type Error: From<SendError>;
    type Future: Future<Output = (Self, Result<CryptoVec, Self::Error>)> + Send;

    // Required method
    fn auth_publickey_sign(
        self,
        key: &PublicKey,
        to_sign: CryptoVec
    ) -> Self::Future;
}

Required Associated Types§

source

type Error: From<SendError>

source

type Future: Future<Output = (Self, Result<CryptoVec, Self::Error>)> + Send

Required Methods§

source

fn auth_publickey_sign( self, key: &PublicKey, to_sign: CryptoVec ) -> Self::Future

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<R: AsyncRead + AsyncWrite + Unpin + Send + 'static> Signer for AgentClient<R>

§

type Error = AgentAuthError

§

type Future = Pin<Box<dyn Future<Output = (AgentClient<R>, Result<CryptoVec, <AgentClient<R> as Signer>::Error>)> + Send>>

source§

fn auth_publickey_sign( self, key: &PublicKey, to_sign: CryptoVec ) -> Self::Future

Implementors§