Struct zlo::Bounded [] [src]

pub struct Bounded(_);

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

Methods

impl Bounded
[src]

[src]

Create new bit limit.

[src]

Create new byte limit.

Trait Implementations

impl Copy for Bounded
[src]

impl Clone for Bounded
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl SizeLimit for Bounded
[src]

[src]

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

[src]

Returns the hard limit (if one exists)