Enum actix_web::Binary
[−]
[src]
pub enum Binary { Bytes(Bytes), Slice(&'static [u8]), 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 stirng body
Methods
impl Binary
[src]
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn from_slice(s: &[u8]) -> Binary
[src]
Create binary body from slice
Trait Implementations
impl Debug for Binary
[src]
impl PartialEq for Binary
[src]
fn eq(&self, __arg_0: &Binary) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Binary) -> bool
[src]
This method tests for !=
.