Skip to main content

XnodeDeployer

Trait XnodeDeployer 

Source
pub trait XnodeDeployer: Send + Sync {
    type ProviderOutput;

    // Required methods
    fn deploy(
        &self,
        input: DeployInput,
    ) -> impl Future<Output = Result<Self::ProviderOutput, Error>> + Send;
    fn undeploy(
        &self,
        xnode: Self::ProviderOutput,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn ipv4(
        &self,
        xnode: &Self::ProviderOutput,
    ) -> impl Future<Output = Result<OptionalSupport<Option<Ipv4Addr>>, Error>> + Send;
}

Required Associated Types§

Required Methods§

Source

fn deploy( &self, input: DeployInput, ) -> impl Future<Output = Result<Self::ProviderOutput, Error>> + Send

Provision new hardware with XnodeOS

Source

fn undeploy( &self, xnode: Self::ProviderOutput, ) -> impl Future<Output = Result<(), Error>> + Send

Cancel renting of hardware

Source

fn ipv4( &self, xnode: &Self::ProviderOutput, ) -> impl Future<Output = Result<OptionalSupport<Option<Ipv4Addr>>, Error>> + Send

Get ipv4 address of deployed hardware

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§