pub struct Negotiate<L, R> { /* private fields */ }Available on crate feature
client and crate feature client-pool and docsrs only.Expand description
Implementations§
Source§impl<L, R> Negotiate<L, R>
impl<L, R> Negotiate<L, R>
Sourcepub fn fallback_mut(&mut self) -> &mut L
pub fn fallback_mut(&mut self) -> &mut L
Get a mutable reference to the fallback service.
Sourcepub fn upgrade_mut(&mut self) -> &mut R
pub fn upgrade_mut(&mut self) -> &mut R
Get a mutable reference to the upgrade service.
Trait Implementations§
Source§impl<L, R, Target> Service<Target> for Negotiate<L, R>
impl<L, R, Target> Service<Target> for Negotiate<L, R>
Auto Trait Implementations§
impl<L, R> Freeze for Negotiate<L, R>
impl<L, R> RefUnwindSafe for Negotiate<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Negotiate<L, R>
impl<L, R> Sync for Negotiate<L, R>
impl<L, R> Unpin for Negotiate<L, R>
impl<L, R> UnwindSafe for Negotiate<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