pub struct WithIndex<T> { /* private fields */ }Expand description
Wraps the returned value of an API call with blocking possibility with the returned Consul index
Implementations§
Source§impl<T> WithIndex<T>
impl<T> WithIndex<T>
Sourcepub fn index_from(resp: &Response) -> Result<WithIndexBuilder<T>>
pub fn index_from(resp: &Response) -> Result<WithIndexBuilder<T>>
(for internal use, mostly)
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns the inner value, discarding the index
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for WithIndex<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithIndex<T>where
T: RefUnwindSafe,
impl<T> Send for WithIndex<T>where
T: Send,
impl<T> Sync for WithIndex<T>where
T: Sync,
impl<T> Unpin for WithIndex<T>where
T: Unpin,
impl<T> UnwindSafe for WithIndex<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more