pub struct RunpodClient { /* private fields */ }Expand description
Main client struct for interacting with RunPod.
Implementations§
Source§impl RunpodClient
impl RunpodClient
pub async fn create_on_demand_pod( &self, req: CreateOnDemandPodRequest, ) -> Result<PodCreateResponseData, Error>
pub async fn create_spot_pod( &self, req: CreateSpotPodRequest, ) -> Result<PodCreateResponseData, Error>
pub async fn start_on_demand_pod( &self, pod_id: &str, gpu_count: i32, ) -> Result<PodStartResponseData, Error>
pub async fn start_spot_pod( &self, pod_id: &str, bid_per_gpu: f64, gpu_count: i32, ) -> Result<PodStartResponseData, Error>
pub async fn stop_pod(&self, pod_id: &str) -> Result<PodStopResponseData, Error>
pub async fn list_pods(&self) -> Result<PodsListResponseData, Error>
pub async fn get_pod(&self, pod_id: &str) -> Result<PodInfoResponseData, Error>
pub async fn list_gpu_types(&self) -> Result<GPUTypesListResponseData, Error>
pub async fn get_gpu_type( &self, gpu_type_id: &str, ) -> Result<GPUTypeResponseData, Error>
Auto Trait Implementations§
impl Freeze for RunpodClient
impl !RefUnwindSafe for RunpodClient
impl Send for RunpodClient
impl Sync for RunpodClient
impl Unpin for RunpodClient
impl !UnwindSafe for RunpodClient
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