pub struct ProxyHandler { /* private fields */ }
Expand description
Proxy handler for managing proxies
Implementations§
Source§impl ProxyHandler
impl ProxyHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn stats(&self, uid: u32) -> Result<ProxyStats>
pub async fn stats(&self, uid: u32) -> Result<ProxyStats>
Get proxy statistics
Sourcepub async fn stats_metric(
&self,
uid: u32,
metric: &str,
) -> Result<MetricResponse>
pub async fn stats_metric( &self, uid: u32, metric: &str, ) -> Result<MetricResponse>
Get proxy statistics for a specific metric
Sourcepub async fn list_by_database(&self, bdb_uid: u32) -> Result<Vec<Proxy>>
pub async fn list_by_database(&self, bdb_uid: u32) -> Result<Vec<Proxy>>
Get proxies for a specific database
Sourcepub async fn list_by_node(&self, node_uid: u32) -> Result<Vec<Proxy>>
pub async fn list_by_node(&self, node_uid: u32) -> Result<Vec<Proxy>>
Get proxies for a specific node
Sourcepub async fn update_all(&self, update: ProxyUpdate) -> Result<Vec<Proxy>>
pub async fn update_all(&self, update: ProxyUpdate) -> Result<Vec<Proxy>>
Update proxies (bulk) - PUT /v1/proxies
Auto Trait Implementations§
impl Freeze for ProxyHandler
impl !RefUnwindSafe for ProxyHandler
impl Send for ProxyHandler
impl Sync for ProxyHandler
impl Unpin for ProxyHandler
impl !UnwindSafe for ProxyHandler
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