Struct bincode::Bounded [] [src]

pub struct Bounded(pub u64);

A SizeLimit that restricts serialized or deserialized messages from exceeding a certain byte length.

Trait Implementations

impl Copy for Bounded
[src]

impl Clone for Bounded
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl SizeLimit for Bounded
[src]

Tells the SizeLimit that a certain number of bytes has been read or written. Returns Err if the limit has been exceeded. Read more

Returns the hard limit (if one exists)