Enum actix_web::BinaryBody 
                   
                       [−]
                   
               [src]
pub enum BinaryBody {
    Bytes(Bytes),
    Slice(&'static [u8]),
    SharedBytes(Rc<Bytes>),
    SharedString(Rc<String>),
    // some variants omitted
}Represents various types of binary body.
Content-Length header is set to length of the body.
Variants
Bytes(Bytes)Bytes body
Slice(&'static [u8])Static slice
Shared bytes body
Shared stirng body
Methods
impl BinaryBody[src]
fn is_empty(&self) -> bool[src]
fn len(&self) -> usize[src]
fn from_slice(s: &[u8]) -> BinaryBody[src]
Create binary body from slice
Trait Implementations
impl Debug for BinaryBody[src]
impl From<&'static str> for BinaryBody[src]
fn from(s: &'static str) -> BinaryBody[src]
Performs the conversion.
impl From<&'static [u8]> for BinaryBody[src]
fn from(s: &'static [u8]) -> BinaryBody[src]
Performs the conversion.
impl From<Vec<u8>> for BinaryBody[src]
fn from(vec: Vec<u8>) -> BinaryBody[src]
Performs the conversion.
impl From<String> for BinaryBody[src]
fn from(s: String) -> BinaryBody[src]
Performs the conversion.
impl<'a> From<&'a String> for BinaryBody[src]
fn from(s: &'a String) -> BinaryBody[src]
Performs the conversion.
impl From<Bytes> for BinaryBody[src]
fn from(s: Bytes) -> BinaryBody[src]
Performs the conversion.
impl From<BytesMut> for BinaryBody[src]
fn from(s: BytesMut) -> BinaryBody[src]
Performs the conversion.
impl From<Rc<Bytes>> for BinaryBody[src]
fn from(body: Rc<Bytes>) -> BinaryBody[src]
Performs the conversion.
impl<'a> From<&'a Rc<Bytes>> for BinaryBody[src]
fn from(body: &'a Rc<Bytes>) -> BinaryBody[src]
Performs the conversion.
impl From<Arc<Bytes>> for BinaryBody[src]
fn from(body: Arc<Bytes>) -> BinaryBody[src]
Performs the conversion.
impl<'a> From<&'a Arc<Bytes>> for BinaryBody[src]
fn from(body: &'a Arc<Bytes>) -> BinaryBody[src]
Performs the conversion.
impl From<Rc<String>> for BinaryBody[src]
fn from(body: Rc<String>) -> BinaryBody[src]
Performs the conversion.
impl<'a> From<&'a Rc<String>> for BinaryBody[src]
fn from(body: &'a Rc<String>) -> BinaryBody[src]
Performs the conversion.
impl From<Arc<String>> for BinaryBody[src]
fn from(body: Arc<String>) -> BinaryBody[src]
Performs the conversion.
impl<'a> From<&'a Arc<String>> for BinaryBody[src]
fn from(body: &'a Arc<String>) -> BinaryBody[src]
Performs the conversion.