pub struct FirecrackerClient { /* private fields */ }
Implementations§
Source§impl FirecrackerClient
impl FirecrackerClient
pub async fn new(base_url: &str) -> Result<Self, FirecrackerError>
pub async fn create_sync_action( &self, action: &InstanceActionInfo, ) -> Result<(), FirecrackerError>
Trait Implementations§
Source§impl ActionOperations for FirecrackerClient
impl ActionOperations for FirecrackerClient
fn create_sync_action<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 InstanceActionInfo,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl BalloonOperations for FirecrackerClient
impl BalloonOperations for FirecrackerClient
fn get_balloon_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Balloon, FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_balloon_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Balloon,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn patch_balloon_config<'life0, 'life1, 'async_trait>(
&'life0 self,
update: &'life1 BalloonUpdate,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_balloon_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BalloonStats, FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn patch_balloon_stats<'life0, 'life1, 'async_trait>(
&'life0 self,
update: &'life1 BalloonStatsUpdate,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl BootSourceOperations for FirecrackerClient
impl BootSourceOperations for FirecrackerClient
fn put_boot_source<'life0, 'life1, 'async_trait>(
&'life0 self,
boot_source: &'life1 BootSource,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl DriveOperations for FirecrackerClient
impl DriveOperations for FirecrackerClient
fn put_drive<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
drive_id: &'life1 str,
drive: &'life2 Drive,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn patch_drive<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
drive_id: &'life1 str,
drive: &'life2 Drive,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl EntropyDeviceOperations for FirecrackerClient
impl EntropyDeviceOperations for FirecrackerClient
fn put_entropy_device<'life0, 'life1, 'async_trait>(
&'life0 self,
device: &'life1 EntropyDevice,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl InstanceOperations for FirecrackerClient
impl InstanceOperations for FirecrackerClient
fn describe_instance<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<InstanceInfo, FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl LoggerOperations for FirecrackerClient
impl LoggerOperations for FirecrackerClient
Source§impl MachineConfigOperations for FirecrackerClient
impl MachineConfigOperations for FirecrackerClient
fn get_machine_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MachineConfig, FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_machine_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 MachineConfig,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn patch_machine_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 MachineConfig,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl MmdsOperations for FirecrackerClient
impl MmdsOperations for FirecrackerClient
fn put_mmds<'life0, 'async_trait>(
&'life0 self,
data: Value,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn patch_mmds<'life0, 'async_trait>(
&'life0 self,
data: Value,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_mmds<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Value, FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl NetworkInterfaceOperations for FirecrackerClient
impl NetworkInterfaceOperations for FirecrackerClient
fn put_network_interface<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
iface_id: &'life1 str,
interface: &'life2 NetworkInterface,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn patch_network_interface<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
iface_id: &'life1 str,
interface: &'life2 NetworkInterface,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl SnapshotOperations for FirecrackerClient
impl SnapshotOperations for FirecrackerClient
fn create_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 SnapshotCreateParams,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 SnapshotLoadParams,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl VersionOperations for FirecrackerClient
impl VersionOperations for FirecrackerClient
fn get_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FirecrackerVersion, FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl VmOperations for FirecrackerClient
impl VmOperations for FirecrackerClient
fn get_vm_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<VmInfo, FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_vm_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 VmConfig,
) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl VsockOperations for FirecrackerClient
impl VsockOperations for FirecrackerClient
Auto Trait Implementations§
impl Freeze for FirecrackerClient
impl !RefUnwindSafe for FirecrackerClient
impl Send for FirecrackerClient
impl Sync for FirecrackerClient
impl Unpin for FirecrackerClient
impl !UnwindSafe for FirecrackerClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more