Skip to main content

Target

Trait Target 

Source
pub trait Target: Clone + From<Url> {
    // Required methods
    fn url(&self) -> &Url;
    fn fixed(&self) -> bool;
}
Expand description

One of a peer’s addresses, as the caller dials it.

Required Methods§

Source

fn url(&self) -> &Url

The URL a dial reaches, which a GOAWAY redirect is judged against.

Source

fn fixed(&self) -> bool

Whether the dial skips resolving the URL for fixed socket addresses, which a GOAWAY redirect cannot carry over.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Target for Url

Source§

fn url(&self) -> &Url

Source§

fn fixed(&self) -> bool

Implementors§