pub struct BootstrapClient { /* private fields */ }Implementations§
Source§impl BootstrapClient
impl BootstrapClient
pub fn new() -> Result<Self, UpstreamError>
pub async fn bootstrap(&self, host: &str) -> Result<SocketAddr, UpstreamError>
Auto Trait Implementations§
impl Freeze for BootstrapClient
impl !RefUnwindSafe for BootstrapClient
impl Send for BootstrapClient
impl Sync for BootstrapClient
impl Unpin for BootstrapClient
impl !UnwindSafe for BootstrapClient
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