Struct actix_web::dev::PayloadBuffer[][src]

pub struct PayloadBuffer<S> { /* fields omitted */ }
[]

Payload buffer

Methods

impl<S> PayloadBuffer<S> where
    S: Stream<Item = Bytes, Error = PayloadError>, 
[src]
[]

[]

Create new PayloadBuffer instance

Important traits for &'a mut R
[]

Get mutable reference to an inner stream.

[]

Read first available chunk of bytes

[]

Check if buffer contains enough bytes

[]

Return reference to the first chunk of data

[]

Read exact number of bytes

[]

Remove specified amount if bytes from buffer

[]

Copy buffered data

[]

Read until specified ending

[]

Read bytes until new line delimiter

[]

Put unprocessed data back to the buffer

[]

Get remaining data from the buffer

Auto Trait Implementations

impl<S> Send for PayloadBuffer<S> where
    S: Send

impl<S> Sync for PayloadBuffer<S> where
    S: Sync