pub struct AppResolver<'r> { /* private fields */ }Available on crate feature
dns only.Expand description
Query the Fly.io internal DNS records for a particular app.
Implementations§
Source§impl<'r> AppResolver<'r>
impl<'r> AppResolver<'r>
Sourcepub async fn regions(&self) -> Result<Vec<Region>, Error>
Available on crate feature regions only.
pub async fn regions(&self) -> Result<Vec<Region>, Error>
regions only.Find the Fly.io regions where this app is deployed.
Sourcepub async fn nodes(&self) -> Result<Vec<Node>, Error>
pub async fn nodes(&self) -> Result<Vec<Node>, Error>
Find all running instances of this Fly.io app.
Sourcepub async fn peers(&self) -> Result<Vec<Peer>, Error>
pub async fn peers(&self) -> Result<Vec<Peer>, Error>
Find all running instances of this Fly.io app, and resolve all their instance ID’s to private IP addresses.
Auto Trait Implementations§
impl<'r> Freeze for AppResolver<'r>
impl<'r> !RefUnwindSafe for AppResolver<'r>
impl<'r> Send for AppResolver<'r>
impl<'r> Sync for AppResolver<'r>
impl<'r> Unpin for AppResolver<'r>
impl<'r> !UnwindSafe for AppResolver<'r>
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