pub struct PlaneClient { /* private fields */ }
Implementations§
Source§impl PlaneClient
impl PlaneClient
pub fn new(base_url: Url) -> Self
pub async fn status(&self) -> Result<StatusResponse, PlaneClientError>
pub fn drone_connection( &self, cluster: &ClusterName, pool: &DronePoolName, ) -> TypedSocketConnector<MessageFromDrone>
pub fn proxy_connection( &self, cluster: &ClusterName, ) -> TypedSocketConnector<MessageFromProxy>
pub fn dns_connection(&self) -> TypedSocketConnector<MessageFromDns>
pub async fn connect( &self, connect_request: &ConnectRequest, ) -> Result<ConnectResponse, PlaneClientError>
pub async fn drain( &self, cluster: &ClusterName, drone: &DroneName, ) -> Result<DrainResult, PlaneClientError>
pub async fn soft_terminate( &self, backend_id: &BackendName, ) -> Result<(), PlaneClientError>
pub async fn hard_terminate( &self, backend_id: &BackendName, ) -> Result<(), PlaneClientError>
pub async fn revoke( &self, request: &RevokeRequest, ) -> Result<(), PlaneClientError>
pub fn backend_status_url(&self, backend_id: &BackendName) -> Url
pub async fn backend_status( &self, backend_id: &BackendName, ) -> Result<BackendStatusStreamEntry, PlaneClientError>
pub fn backend_status_stream_url(&self, backend_id: &BackendName) -> Url
pub async fn backend_status_stream( &self, backend_id: &BackendName, ) -> Result<SseStream<BackendStatusStreamEntry>, PlaneClientError>
pub async fn cluster_state( &self, cluster: &ClusterName, ) -> Result<ClusterState, PlaneClientError>
pub async fn health_check(&self) -> Result<(), PlaneClientError>
Trait Implementations§
Source§impl Clone for PlaneClient
impl Clone for PlaneClient
Source§fn clone(&self) -> PlaneClient
fn clone(&self) -> PlaneClient
Returns a duplicate of the value. Read more
1.0.0 · 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 PlaneClient
impl !RefUnwindSafe for PlaneClient
impl Send for PlaneClient
impl Sync for PlaneClient
impl Unpin for PlaneClient
impl !UnwindSafe for PlaneClient
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