pub struct ParsedResponse<T> { /* private fields */ }
Expand description
Wrapper for deserialized data.
§Safety
This contains a raw pointer to the underlying bytes of the response used to get the data.
However, this is only used on drop to deallocate it (after which there are no valid references
to data
) and cannot be constructed such that it can be invalidated at drop.
Trait Implementations§
Source§impl<T: Debug> Debug for ParsedResponse<T>
impl<T: Debug> Debug for ParsedResponse<T>
Source§impl<T> Deref for ParsedResponse<T>
impl<T> Deref for ParsedResponse<T>
Auto Trait Implementations§
impl<T> Freeze for ParsedResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParsedResponse<T>where
T: RefUnwindSafe,
impl<T> !Send for ParsedResponse<T>
impl<T> !Sync for ParsedResponse<T>
impl<T> Unpin for ParsedResponse<T>where
T: Unpin,
impl<T> UnwindSafe for ParsedResponse<T>where
T: UnwindSafe,
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