pub struct FilteredAddressLookup<T> { /* private fields */ }Expand description
An AddressLookup wrapper that filters addresses before publishing.
Implementations§
Source§impl<T> FilteredAddressLookup<T>
impl<T> FilteredAddressLookup<T>
Sourcepub fn new(inner: T, filter: AddrFilter) -> Self
pub fn new(inner: T, filter: AddrFilter) -> Self
Wraps an address lookup with an address filter.
The filter allows to specify which addresses the address lookup service will publish.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Removes the filter wrapper and returns the inner address lookup.
Trait Implementations§
Source§impl<T: AddressLookup> AddressLookup for FilteredAddressLookup<T>
impl<T: AddressLookup> AddressLookup for FilteredAddressLookup<T>
Source§fn publish(&self, data: &EndpointData)
fn publish(&self, data: &EndpointData)
Publishes the given
EndpointData to the Address Lookup mechanism. Read moreSource§impl<T> AsRef<T> for FilteredAddressLookup<T>
impl<T> AsRef<T> for FilteredAddressLookup<T>
Source§impl<T: Clone> Clone for FilteredAddressLookup<T>
impl<T: Clone> Clone for FilteredAddressLookup<T>
Source§fn clone(&self) -> FilteredAddressLookup<T>
fn clone(&self) -> FilteredAddressLookup<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for FilteredAddressLookup<T>where
T: Freeze,
impl<T> !RefUnwindSafe for FilteredAddressLookup<T>
impl<T> Send for FilteredAddressLookup<T>where
T: Send,
impl<T> Sync for FilteredAddressLookup<T>where
T: Sync,
impl<T> Unpin for FilteredAddressLookup<T>where
T: Unpin,
impl<T> !UnwindSafe for FilteredAddressLookup<T>
Blanket Implementations§
Source§impl<T> AddressLookupBuilder for Twhere
T: AddressLookup,
impl<T> AddressLookupBuilder for Twhere
T: AddressLookup,
Source§fn into_address_lookup(
self,
_endpoint: &Endpoint,
) -> Result<impl AddressLookup, AddressLookupBuilderError>
fn into_address_lookup( self, _endpoint: &Endpoint, ) -> Result<impl AddressLookup, AddressLookupBuilderError>
Turns this builder into a ready-to-use
AddressLookup. Read more§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more