pub struct Endpoint { /* private fields */ }Implementations§
source§impl Endpoint
impl Endpoint
sourcepub fn new<T, U, V>(service_name: T, ipv4: U, ipv6: V) -> Endpoint
pub fn new<T, U, V>(service_name: T, ipv4: U, ipv6: V) -> Endpoint
Constructs a new instance of the type.
sourcepub fn builder() -> BuilderStage0
pub fn builder() -> BuilderStage0
Returns a new builder.
sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
Name of the service that generated the annotation
Trait Implementations§
source§impl<'de> Deserialize<'de> for Endpoint
impl<'de> Deserialize<'de> for Endpoint
source§fn deserialize<D>(d: D) -> Result<Endpoint, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Endpoint, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Endpoint> for BuilderStage1
impl From<Endpoint> for BuilderStage1
source§impl Ord for Endpoint
impl Ord for Endpoint
source§impl PartialEq for Endpoint
impl PartialEq for Endpoint
source§impl PartialOrd for Endpoint
impl PartialOrd for Endpoint
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Endpoint
impl StructuralEq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more