Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 14th, 2018 89 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. pub trait BasRequest {
  2.     type Response;
  3. }
  4.  
  5. pub trait Future {
  6.     type Item;
  7. }
  8.  
  9. pub trait BasRequester {
  10.     fn send<T>(&mut self, obj: T) -> Future<Item=T::Response>
  11.         where T: BasRequest;
  12. }
  13.  
  14.  
  15. pub trait BasRequesterTraitObject {
  16.     fn send<T>(&mut self, obj: T) -> dyn Future<Item=T::Response>
  17.         where T: BasRequest;
  18. }
  19.  
  20. pub trait BasRequesterNoTraitObject {
  21.     fn send<T>(&mut self, obj: T) -> impl Future<Item=T::Response>
  22.         where T: BasRequest;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top