Prefix

Structin bodyfastly 0.13.1View source
pub struct Prefix<'a> { /* private fields */ }

Smart pointer returned by Body::get_prefix_mut().

Methods

fn take(self) -> Vec<u8>

Return the prefix as a byte vector without writing it back to the Body from which it came.

Parameters

self: Self

Returns

Vec<u8>

Trait implementations

impl Debug for Prefix

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Parameters

self: &Self
f: &mut std::fmt::Formatter

Returns

std::fmt::Result

impl Deref for Prefix

fn deref(&self) -> &Self::Target

Parameters

self: &Self

Returns

&Self::Target

impl DerefMut for Prefix

deref_mut

View source
fn deref_mut(&mut self) -> &mut Self::Target

Parameters

self: &mut Self

Returns

&mut Self::Target

impl Drop for Prefix

fn drop(&mut self)

Parameters

self: &mut Self

Auto trait implementations

Blanket implementations