pub struct LocalFrameBytesRef<'req> { /* private fields */ }Implementations§
Source§impl<'req> LocalFrameBytesRef<'req>
impl<'req> LocalFrameBytesRef<'req>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub unsafe fn assume_static(self) -> LocalFrameBytes
pub fn from_slice(slice: &'req [u8]) -> Self
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn slice(self, range: Range<usize>) -> Self
pub fn into_bytes(self) -> Shared
Trait Implementations§
Source§impl<'req> AsRef<[u8]> for LocalFrameBytesRef<'req>
impl<'req> AsRef<[u8]> for LocalFrameBytesRef<'req>
Source§impl<'req> Clone for LocalFrameBytesRef<'req>
impl<'req> Clone for LocalFrameBytesRef<'req>
Source§impl<'req> IntoBody<'req> for LocalFrameBytesRef<'req>
impl<'req> IntoBody<'req> for LocalFrameBytesRef<'req>
fn into_response_body(self) -> BodyInner<'req>
Source§impl<'req> IntoHeaderValue<'req> for LocalFrameBytesRef<'req>
impl<'req> IntoHeaderValue<'req> for LocalFrameBytesRef<'req>
fn into_header_value(self) -> HeaderValueInner<'req>
Auto Trait Implementations§
impl<'req> !RefUnwindSafe for LocalFrameBytesRef<'req>
impl<'req> !Send for LocalFrameBytesRef<'req>
impl<'req> !Sync for LocalFrameBytesRef<'req>
impl<'req> !UnwindSafe for LocalFrameBytesRef<'req>
impl<'req> Freeze for LocalFrameBytesRef<'req>
impl<'req> Unpin for LocalFrameBytesRef<'req>
impl<'req> UnsafeUnpin for LocalFrameBytesRef<'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