pub struct LambdaClient { /* private fields */ }Implementations§
Source§impl LambdaClient
impl LambdaClient
pub fn from_settings(settings: &LambdaSettings) -> Result<Self>
pub fn new(endpoint: impl Into<String>, api_key: impl Into<String>) -> Self
pub async fn list_instance_types(&self) -> Result<Vec<InstanceType>>
pub async fn list_instances(&self) -> Result<Vec<Instance>>
pub async fn get_instance(&self, id: &str) -> Result<Instance>
pub async fn launch_instance( &self, req: &LaunchInstancesRequest, ) -> Result<InstanceLaunchResponse>
pub async fn terminate_instance(&self, id: &str) -> Result<()>
pub async fn list_ssh_keys(&self) -> Result<Vec<SshKey>>
pub async fn create_ssh_key(&self, req: &CreateSshKeyRequest) -> Result<SshKey>
pub async fn list_filesystems(&self) -> Result<Vec<Filesystem>>
pub async fn create_filesystem( &self, req: &CreateFilesystemRequest, ) -> Result<Filesystem>
pub async fn delete_filesystem(&self, id: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for LambdaClient
impl Clone for LambdaClient
Source§fn clone(&self) -> LambdaClient
fn clone(&self) -> LambdaClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LambdaClient
impl !RefUnwindSafe for LambdaClient
impl Send for LambdaClient
impl Sync for LambdaClient
impl Unpin for LambdaClient
impl UnsafeUnpin for LambdaClient
impl !UnwindSafe for LambdaClient
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