pub struct NoRapHttp;Expand description
A placeholder HttpClient used as the default when no RAP notifier is
configured. Its methods are never invoked.
Trait Implementations§
Source§impl HttpClient for NoRapHttp
impl HttpClient for NoRapHttp
Source§fn post<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_body: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<u16, NoRapHttpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn post<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_body: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<u16, NoRapHttpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
POST a JSON body to the given URL. Returns the HTTP status code.
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
_url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(u16, Vec<u8>), NoRapHttpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
_url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(u16, Vec<u8>), NoRapHttpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
GET the given URL. Returns the HTTP status code and response body.
Auto Trait Implementations§
impl Freeze for NoRapHttp
impl RefUnwindSafe for NoRapHttp
impl Send for NoRapHttp
impl Sync for NoRapHttp
impl Unpin for NoRapHttp
impl UnsafeUnpin for NoRapHttp
impl UnwindSafe for NoRapHttp
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