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 = Option<Error>> + Send;
fn ipv4(
&self,
xnode: &Self::ProviderOutput,
) -> impl Future<Output = Result<OptionalSupport<Option<Ipv4Addr>>, Error>> + Send;
}Required Associated Types§
type ProviderOutput
Required Methods§
Sourcefn deploy(
&self,
input: DeployInput,
) -> impl Future<Output = Result<Self::ProviderOutput, Error>> + Send
fn deploy( &self, input: DeployInput, ) -> impl Future<Output = Result<Self::ProviderOutput, Error>> + Send
Provision new hardware with XnodeOS
Sourcefn undeploy(
&self,
xnode: Self::ProviderOutput,
) -> impl Future<Output = Option<Error>> + Send
fn undeploy( &self, xnode: Self::ProviderOutput, ) -> impl Future<Output = Option<Error>> + Send
Cancel renting of hardware
Sourcefn ipv4(
&self,
xnode: &Self::ProviderOutput,
) -> impl Future<Output = Result<OptionalSupport<Option<Ipv4Addr>>, Error>> + Send
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", so this trait is not object safe.