Enum jsonrpsee_server::middleware::rpc::layer::either::Either
source · pub enum Either<A, B> {
Left(A),
Right(B),
}
Expand description
tower::util::Either
but
adjusted to satisfy the trait bound `RpcServiceT.
Variants§
Trait Implementations§
source§impl<'a, A, B> RpcServiceT<'a> for Either<A, B>
impl<'a, A, B> RpcServiceT<'a> for Either<A, B>
§type Future = Either<<A as RpcServiceT<'a>>::Future, <B as RpcServiceT<'a>>::Future>
type Future = Either<<A as RpcServiceT<'a>>::Future, <B as RpcServiceT<'a>>::Future>
The future response value.
Auto Trait Implementations§
impl<A, B> Freeze for Either<A, B>
impl<A, B> RefUnwindSafe for Either<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Either<A, B>
impl<A, B> Sync for Either<A, B>
impl<A, B> Unpin for Either<A, B>
impl<A, B> UnwindSafe for Either<A, B>where
A: UnwindSafe,
B: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)