pub struct TextBody<'req> { /* private fields */ }Implementations§
Source§impl<'req> TextBody<'req>
impl<'req> TextBody<'req>
pub fn new() -> Self
pub fn from_items<const N: usize>(items: [TextItem<'req>; N]) -> Self
pub fn from_static(bytes: &'static [u8]) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push_static(&mut self, bytes: &'static [u8]) -> &mut Self
pub fn push_borrowed(&mut self, bytes: Bytes<Borrowed<'req>>) -> &mut Self
pub fn push_retained(&mut self, bytes: Bytes<Retained>) -> &mut Self
pub fn into_bytes(self) -> Shared
Trait Implementations§
Auto Trait Implementations§
impl<'req> !RefUnwindSafe for TextBody<'req>
impl<'req> !Send for TextBody<'req>
impl<'req> !Sync for TextBody<'req>
impl<'req> !UnwindSafe for TextBody<'req>
impl<'req> Freeze for TextBody<'req>
impl<'req> Unpin for TextBody<'req>
impl<'req> UnsafeUnpin for TextBody<'req>
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