pub enum Negotiated<L, R> {
// some variants omitted
}Available on crate feature
client and crate feature client-pool and docsrs only.Expand description
Implementations§
Source§impl<L, R> Negotiated<L, R>
impl<L, R> Negotiated<L, R>
Sourcepub fn fallback_ref(&self) -> Option<&L>
pub fn fallback_ref(&self) -> Option<&L>
Get a reference to the fallback service if this is it.
Sourcepub fn fallback_mut(&mut self) -> Option<&mut L>
pub fn fallback_mut(&mut self) -> Option<&mut L>
Get a mutable reference to the fallback service if this is it.
Sourcepub fn upgraded_ref(&self) -> Option<&R>
pub fn upgraded_ref(&self) -> Option<&R>
Get a reference to the upgraded service if this is it.
Sourcepub fn upgraded_mut(&mut self) -> Option<&mut R>
pub fn upgraded_mut(&mut self) -> Option<&mut R>
Get a mutable reference to the upgraded service if this is it.
Trait Implementations§
Source§impl<L: Clone, R: Clone> Clone for Negotiated<L, R>
impl<L: Clone, R: Clone> Clone for Negotiated<L, R>
Source§fn clone(&self) -> Negotiated<L, R>
fn clone(&self) -> Negotiated<L, R>
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 moreSource§impl<L, R, Req, Res, E> Service<Req> for Negotiated<L, R>
impl<L, R, Req, Res, E> Service<Req> for Negotiated<L, R>
Auto Trait Implementations§
impl<L, R> Freeze for Negotiated<L, R>
impl<L, R> RefUnwindSafe for Negotiated<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Negotiated<L, R>
impl<L, R> Sync for Negotiated<L, R>
impl<L, R> Unpin for Negotiated<L, R>
impl<L, R> UnwindSafe for Negotiated<L, R>where
L: UnwindSafe,
R: UnwindSafe,
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