Skip to main content

ConnectorProxyInterface

Trait ConnectorProxyInterface 

Source
pub trait ConnectorProxyInterface: Send + Sync {
    type EstablishCircuitResponseFut: Future<Output = Result<u64, Error>> + Send;
    type FdomainToolboxSocketResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn establish_circuit(
        &self,
        id: u64,
        socket: Socket,
    ) -> Self::EstablishCircuitResponseFut;
    fn fdomain_toolbox_socket(
        &self,
        socket: Socket,
    ) -> Self::FdomainToolboxSocketResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§