pub struct HttpTransportBoxed { /* private fields */ }
Implementations§
Source§impl HttpTransportBoxed
impl HttpTransportBoxed
pub fn new(inner: HttpTransport) -> Self
Trait Implementations§
Source§impl DynHttpTransport for HttpTransportBoxed
impl DynHttpTransport for HttpTransportBoxed
fn get_json<'a>( &'a self, url: &'a str, headers: Option<HashMap<String, String>>, ) -> Pin<Box<dyn Future<Output = Result<Value, AiLibError>> + Send + 'a>>
fn post_json<'a>( &'a self, url: &'a str, _headers: Option<HashMap<String, String>>, body: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, AiLibError>> + Send + 'a>>
fn post_stream<'a>( &'a self, _url: &'a str, _headers: Option<HashMap<String, String>>, _body: Value, ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Bytes, AiLibError>> + Send>>, AiLibError>> + Send + 'a>>
Auto Trait Implementations§
impl Freeze for HttpTransportBoxed
impl !RefUnwindSafe for HttpTransportBoxed
impl Send for HttpTransportBoxed
impl Sync for HttpTransportBoxed
impl Unpin for HttpTransportBoxed
impl !UnwindSafe for HttpTransportBoxed
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