Struct FirecrackerClient

Source
pub struct FirecrackerClient { /* private fields */ }

Implementations§

Source§

impl FirecrackerClient

Source

pub async fn new(base_url: &str) -> Result<Self, FirecrackerError>

Source

pub async fn create_sync_action( &self, action: &InstanceActionInfo, ) -> Result<(), FirecrackerError>

Trait Implementations§

Source§

impl ActionOperations for FirecrackerClient

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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 CpuConfigOperations for FirecrackerClient

Source§

fn put_cpu_config<'life0, 'life1, 'async_trait>( &'life0 self, config: &'life1 CpuConfig, ) -> 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

Source§

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,

Source§

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

Source§

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

Source§

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

Source§

fn put_logger<'life0, 'life1, 'async_trait>( &'life0 self, logger: &'life1 Logger, ) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl MachineConfigOperations for FirecrackerClient

Source§

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,

Source§

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,

Source§

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 MetricsOperations for FirecrackerClient

Source§

fn put_metrics<'life0, 'life1, 'async_trait>( &'life0 self, metrics: &'life1 Metrics, ) -> 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

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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

Source§

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,

Source§

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

Source§

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

Source§

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,

Source§

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

Source§

fn put_vsock<'life0, 'life1, 'async_trait>( &'life0 self, vsock: &'life1 Vsock, ) -> Pin<Box<dyn Future<Output = Result<(), FirecrackerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,