pub struct LinodeApi { /* private fields */ }
Implementations§
Source§impl<'a> LinodeApi
impl<'a> LinodeApi
pub fn new<S>(token: S) -> LinodeApi
pub async fn list_os_async(&self) -> Result<Vec<LinodeOs>, LinodeError>
pub async fn list_types_async(&self) -> Result<Vec<LinodeType>, LinodeError>
pub async fn list_regions_async(&self) -> Result<Vec<LinodeRegion>, LinodeError>
pub async fn list_availability_async( &self, ) -> Result<Vec<LinodeAvailability>, LinodeError>
pub async fn list_instances_async( &self, ) -> Result<Vec<LinodeInstance>, LinodeError>
pub async fn get_instance_async( &self, instance_id: u64, ) -> Result<LinodeInstance, LinodeError>
pub async fn delete_instance_async( &self, instance_id: u64, ) -> Result<(), LinodeError>
pub async fn shutdown_instance_async( &self, instance_id: u64, ) -> Result<(), LinodeError>
pub fn create_instance( &self, region: &str, ltype: &str, ) -> LinodeCreateInstanceBuilder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinodeApi
impl RefUnwindSafe for LinodeApi
impl Send for LinodeApi
impl Sync for LinodeApi
impl Unpin for LinodeApi
impl UnwindSafe for LinodeApi
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