pub struct Client { /* private fields */ }
Expand description
Endpoints provides an API for querying the endpoint objects which define what tunnel or edge is used to serve a hostport. Only active endpoints associated with a tunnel or backend are returned.
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(&self, req: &EndpointCreate) -> Result<Endpoint, Error>
pub async fn create(&self, req: &EndpointCreate) -> Result<Endpoint, Error>
Create an endpoint, currently available only for cloud endpoints
Sourcepub async fn get(&self, id: &str) -> Result<Endpoint, Error>
pub async fn get(&self, id: &str) -> Result<Endpoint, Error>
Get the status of an endpoint 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