Struct graph_rs_sdk::http::BodyRead
source · pub struct BodyRead { /* private fields */ }
Implementations§
source§impl BodyRead
impl BodyRead
pub fn new(buf: String) -> BodyRead
pub fn from_serialize<T>(body: &T) -> Result<BodyRead, GraphFailure>where
T: Serialize,
pub fn from_read<T>(reader: T) -> Result<BodyRead, GraphFailure>where
T: Read,
pub async fn from_async_read<T>(reader: T) -> Result<BodyRead, GraphFailure>where
T: AsyncReadExt + Unpin,
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§fn try_from(
file_config: &FileConfig
) -> Result<BodyRead, <BodyRead as TryFrom<&FileConfig>>::Error>
fn try_from( file_config: &FileConfig ) -> Result<BodyRead, <BodyRead as TryFrom<&FileConfig>>::Error>
Performs the conversion.
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§fn try_from(
file_config: FileConfig
) -> Result<BodyRead, <BodyRead as TryFrom<FileConfig>>::Error>
fn try_from( file_config: FileConfig ) -> Result<BodyRead, <BodyRead as TryFrom<FileConfig>>::Error>
Performs the conversion.
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