pub struct HttpHandle<'a, 'd, const ID: u8, S, E> { /* private fields */ }Implementations§
Source§impl<'a, 'd, const ID: u8, S, E> HttpHandle<'a, 'd, ID, S, E>
impl<'a, 'd, const ID: u8, S, E> HttpHandle<'a, 'd, ID, S, E>
pub fn from_port(port: &'d Port<'d>) -> Self
pub fn from_cell(conn: Pin<&Connector<'d, ID, Session<'d>, S, E>>) -> Self
pub fn sleep( &self, duration: Duration, ) -> impl Fiber<'d, Output = ()> + 'd + use<'d, ID, S, E>
pub fn connection_count(&self) -> usize
pub fn wait_active<'b>( &'b self, ) -> impl Fiber<'d, Output = Result<(), Error>> + 'b
pub fn host<'b>(&'b self) -> impl Fiber<'d, Output = String> + 'b
pub fn get<'b>( &'b self, path: &'b str, ) -> impl Fiber<'d, Output = Result<Response, Error>> + 'b
pub fn send<'b>( &'b self, method: Method, path: &'b str, body: &'b [u8], ) -> impl Fiber<'d, Output = Result<Response, Error>> + 'b
pub fn send_with_headers<'b>( &'b self, method: Method, path: &'b str, headers: &'b [(&'b str, &'b str)], body: &'b [u8], ) -> impl Fiber<'d, Output = Result<Response, Error>> + 'b
Trait Implementations§
Source§impl<S, E, const ID: u8> Clone for HttpHandle<'_, '_, ID, S, E>
impl<S, E, const ID: u8> Clone for HttpHandle<'_, '_, ID, S, E>
impl<S, E, const ID: u8> Copy for HttpHandle<'_, '_, ID, S, E>
Auto Trait Implementations§
impl<'a, 'd, const ID: u8, S, E> !RefUnwindSafe for HttpHandle<'a, 'd, ID, S, E>
impl<'a, 'd, const ID: u8, S, E> !Send for HttpHandle<'a, 'd, ID, S, E>
impl<'a, 'd, const ID: u8, S, E> !Sync for HttpHandle<'a, 'd, ID, S, E>
impl<'a, 'd, const ID: u8, S, E> !UnwindSafe for HttpHandle<'a, 'd, ID, S, E>
impl<'a, 'd, const ID: u8, S, E> Freeze for HttpHandle<'a, 'd, ID, S, E>
impl<'a, 'd, const ID: u8, S, E> Unpin for HttpHandle<'a, 'd, ID, S, E>
impl<'a, 'd, const ID: u8, S, E> UnsafeUnpin for HttpHandle<'a, 'd, ID, S, E>
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