Struct cocaine::FixedResolver [] [src]

pub struct FixedResolver { /* fields omitted */ }

A no-op resolver, that always returns preliminarily specified endpoints.

Used primarily while resolving a Locator itself, but can be also used, when you're sure about service's location.

The default value returns the default Locator endpoints, i.e ["::", 10053] assuming that IPv6 is enabled.

Methods

impl FixedResolver
[src]

[src]

Constructs a fixed resolver, which will always resolve any service name into the specified endpoints.

[src]

Returns endpoints given at construction time.

Trait Implementations

impl Clone for FixedResolver
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FixedResolver
[src]

[src]

Formats the value using the given formatter.

impl Default for FixedResolver
[src]

An implementation of trait for giving a FixedResolver a useful default value.

The default endpoint for a fixed resolver is: [::1]:10053.

[src]

Returns the "default value" for a type. Read more

impl Resolve for FixedResolver
[src]

Future type that is returned during resolving.

[src]

Resolves a service name into the network endpoints.