Struct flytrap::AppResolver
source · 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> !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