pub struct ResponseData { /* private fields */ }Implementations§
Source§impl ResponseData
impl ResponseData
pub fn from_bytes(bytes: Vec<u8>) -> Self
pub fn from_bytes_with_headers( bytes: Vec<u8>, headers: Option<HashMap<String, String>>, ) -> Self
pub fn from_stream(stream: Box<dyn ResponseDataStream>) -> Self
pub fn from_stream_with_headers( stream: Box<dyn ResponseDataStream>, headers: Option<HashMap<String, String>>, ) -> Self
pub fn get_stream_ref(&self) -> &dyn ResponseDataStream
pub fn get_stream_mut(&mut self) -> &mut dyn ResponseDataStream
pub fn get_header_ref(&self, key: &str) -> Option<&String>
pub fn deserialize_into<T: DeserializeOwned>(&mut self) -> Result<T, StatsigErr>
pub fn deserialize_in_place<T: DeserializeOwned>( &mut self, place: &mut T, ) -> Result<(), StatsigErr>
pub fn read_to_string(&mut self) -> Result<String, StatsigErr>
pub fn read_to_bytes(&mut self) -> Result<Vec<u8>, StatsigErr>
Auto Trait Implementations§
impl Freeze for ResponseData
impl !RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin for ResponseData
impl UnsafeUnpin for ResponseData
impl !UnwindSafe for ResponseData
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