pub struct ResponseData { /* private fields */ }
Implementations§
Source§impl ResponseData
impl ResponseData
pub fn from_bytes(bytes: Vec<u8>) -> Self
pub fn from_stream(stream: Box<dyn ResponseDataStream>) -> Self
pub fn get_stream_ref(&mut self) -> &mut Box<dyn ResponseDataStream>
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>
Auto Trait Implementations§
impl Freeze for ResponseData
impl !RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin 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