pub trait VirtualMedia {
// Required methods
fn insert_media(&self, node: &BmcEndpoint, iso: &str) -> Result<()>;
fn eject_media(&self, node: &BmcEndpoint) -> Result<()>;
fn set_boot_override(
&self,
node: &BmcEndpoint,
target: BootTarget,
) -> Result<()>;
}Expand description
Redfish virtual-media + boot-override control — the out-of-band steps that
make a bare-metal node boot our ISO. Only the redfish::RedfishBoot backend
implements it; the KVM/container backends have no BMC.
Required Methods§
Sourcefn insert_media(&self, node: &BmcEndpoint, iso: &str) -> Result<()>
fn insert_media(&self, node: &BmcEndpoint, iso: &str) -> Result<()>
Attach iso to the node as Redfish virtual media (CD/DVD).
Sourcefn eject_media(&self, node: &BmcEndpoint) -> Result<()>
fn eject_media(&self, node: &BmcEndpoint) -> Result<()>
Detach any virtual media from the node.
Sourcefn set_boot_override(
&self,
node: &BmcEndpoint,
target: BootTarget,
) -> Result<()>
fn set_boot_override( &self, node: &BmcEndpoint, target: BootTarget, ) -> Result<()>
Set the node’s one-time boot override to target.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".