pub struct BlockingResponseHandler { /* private fields */ }
Implementations§
Source§impl BlockingResponseHandler
impl BlockingResponseHandler
pub fn new(result: ClientixResult<Response>) -> BlockingResponseHandler
pub fn text(self) -> ClientixResult<ClientixResponse<String>>
pub fn text_with_encoding( self, encoding: &str, ) -> ClientixResult<ClientixResponse<String>>
pub fn bytes(self) -> ClientixResult<ClientixResponse<Bytes>>
pub fn json<T>(self) -> ClientixResult<ClientixResponse<T>>where
T: DeserializeOwned + Clone,
pub fn xml<T>(self) -> ClientixResult<ClientixResponse<T>>where
T: DeserializeOwned + Clone,
pub fn urlencoded<T>(self) -> ClientixResult<ClientixResponse<T>>where
T: DeserializeOwned + Clone,
Auto Trait Implementations§
impl Freeze for BlockingResponseHandler
impl !RefUnwindSafe for BlockingResponseHandler
impl Send for BlockingResponseHandler
impl Sync for BlockingResponseHandler
impl Unpin for BlockingResponseHandler
impl !UnwindSafe for BlockingResponseHandler
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