pub struct GetAll<'a, VE: ValueEncoding> { /* private fields */ }
Expand description
A view to all values stored in a single entry.
This struct is returned by MetadataMap::get_all
and
MetadataMap::get_all_bin
.
Implementations
sourceimpl<'a, VE: ValueEncoding> GetAll<'a, VE>
impl<'a, VE: ValueEncoding> GetAll<'a, VE>
sourcepub fn iter(&self) -> ValueIter<'a, VE>ⓘNotable traits for ValueIter<'a, VE>impl<'a, VE: ValueEncoding> Iterator for ValueIter<'a, VE>where
VE: 'a, type Item = &'a MetadataValue<VE>;
pub fn iter(&self) -> ValueIter<'a, VE>ⓘNotable traits for ValueIter<'a, VE>impl<'a, VE: ValueEncoding> Iterator for ValueIter<'a, VE>where
VE: 'a, type Item = &'a MetadataValue<VE>;
VE: 'a, type Item = &'a MetadataValue<VE>;
Returns an iterator visiting all values associated with the entry.
Values are iterated in insertion order.
Examples
let mut map = MetadataMap::new();
map.insert("x-host", "hello.world".parse().unwrap());
map.append("x-host", "hello.earth".parse().unwrap());
let values = map.get_all("x-host");
let mut iter = values.iter();
assert_eq!(&"hello.world", iter.next().unwrap());
assert_eq!(&"hello.earth", iter.next().unwrap());
assert!(iter.next().is_none());
Trait Implementations
sourceimpl<'a, 'b: 'a, VE: ValueEncoding> IntoIterator for &'b GetAll<'a, VE>
impl<'a, 'b: 'a, VE: ValueEncoding> IntoIterator for &'b GetAll<'a, VE>
type Item = &'a MetadataValue<VE>
type Item = &'a MetadataValue<VE>
The type of the elements being iterated over.
sourceimpl<'a, VE: ValueEncoding> IntoIterator for GetAll<'a, VE>where
VE: 'a,
impl<'a, VE: ValueEncoding> IntoIterator for GetAll<'a, VE>where
VE: 'a,
type Item = &'a MetadataValue<VE>
type Item = &'a MetadataValue<VE>
The type of the elements being iterated over.
Auto Trait Implementations
impl<'a, VE> RefUnwindSafe for GetAll<'a, VE>where
VE: RefUnwindSafe,
impl<'a, VE> Send for GetAll<'a, VE>where
VE: Send,
impl<'a, VE> Sync for GetAll<'a, VE>where
VE: Sync,
impl<'a, VE> Unpin for GetAll<'a, VE>where
VE: Unpin,
impl<'a, VE> UnwindSafe for GetAll<'a, VE>where
VE: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;