Struct graph_http::api_impl::BodyRead
source · pub struct BodyRead { /* private fields */ }
Implementations§
source§impl BodyRead
impl BodyRead
pub fn new(buf: String) -> BodyRead
pub fn from_serialize<T: Serialize>(body: &T) -> GraphResult<BodyRead>
pub fn from_read<T: Read>(reader: T) -> GraphResult<BodyRead>
pub async fn from_async_read<T: AsyncReadExt + Unpin>( reader: T ) -> GraphResult<BodyRead>
Trait Implementations§
source§impl AsyncTryFrom<File> for BodyRead
impl AsyncTryFrom<File> for BodyRead
source§impl TryFrom<&FileConfig> for BodyRead
impl TryFrom<&FileConfig> for BodyRead
§type Error = GraphFailure
type Error = GraphFailure
The type returned in the event of a conversion error.
source§impl TryFrom<FileConfig> for BodyRead
impl TryFrom<FileConfig> for BodyRead
§type Error = GraphFailure
type Error = GraphFailure
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for BodyRead
impl Send for BodyRead
impl !Sync for BodyRead
impl Unpin for BodyRead
impl !UnwindSafe for BodyRead
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