pub struct BytesBody(pub Vec<u8>);Available on crate feature
api only.Expand description
Raw-bytes body type, used for some media endpoints.
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Source§impl OutgoingBody for BytesBody
impl OutgoingBody for BytesBody
Source§type Error = Infallible
type Error = Infallible
The type of error that can happen in
try_info_buf.Source§fn try_into_buf<T>(self) -> Result<T, Infallible>
fn try_into_buf<T>(self) -> Result<T, Infallible>
Turn
self into a byte buffer (copying a raw body or serializing a JSON one).Auto Trait Implementations§
impl Freeze for BytesBody
impl RefUnwindSafe for BytesBody
impl Send for BytesBody
impl Sync for BytesBody
impl Unpin for BytesBody
impl UnsafeUnpin for BytesBody
impl UnwindSafe for BytesBody
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
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more