Enum rust_rcs_core::internet::body::Body
source · pub enum Body {
Raw(Vec<u8>),
Message(MessageBody),
Multipart(MultipartBody),
Streamed(StreamedBody),
}
Variants§
Implementations§
source§impl Body
impl Body
pub fn construct_raw(data: &[u8]) -> Body
pub fn construct_message(data: &[u8]) -> Result<Body, &'static str>
pub fn construct_multipart( data: &[u8], boundary: &[u8] ) -> Result<Body, &'static str>
pub fn reader(&self) -> Result<BodyReader<'_>, BodySerializationError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl !UnwindSafe for Body
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