pub struct Client { /* private fields */ }
Expand description
A Failover backend defines failover behavior within a list of referenced backends. Traffic is sent to the first backend in the list. If that backend is offline or no connection can be established, ngrok attempts to connect to the next backend in the list until one is successful.
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &FailoverBackendCreate,
) -> Result<FailoverBackend, Error>
pub async fn create( &self, req: &FailoverBackendCreate, ) -> Result<FailoverBackend, Error>
Create a new Failover backend
Sourcepub async fn get(&self, id: &str) -> Result<FailoverBackend, Error>
pub async fn get(&self, id: &str) -> Result<FailoverBackend, Error>
Get detailed information about a Failover backend by ID
Sourcepub async fn update(
&self,
req: &FailoverBackendUpdate,
) -> Result<FailoverBackend, Error>
pub async fn update( &self, req: &FailoverBackendUpdate, ) -> Result<FailoverBackend, Error>
Update Failover backend by ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)