Struct ethcore_light::net::buffer_flow::Buffer [] [src]

pub struct Buffer { /* fields omitted */ }

Buffer value.

Produced and recharged using FlowParams. Definitive updates can be made as well -- these will reset the recharge point to the time of the update.

Methods

impl Buffer
[src]

Get the current buffer value.

Make a definitive update. This will be the value obtained after receiving a response to a request.

Attempt to apply the given cost to the buffer.

If successful, the cost will be deducted successfully.

If unsuccessful, the structure will be unaltered an an error will be produced.

Trait Implementations

impl Debug for Buffer
[src]

Formats the value using the given formatter.

impl Clone for Buffer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Buffer
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Buffer
[src]