Struct kmip_protocol::Config[][src]

pub struct Config { /* fields omitted */ }
Expand description

Configuration settings used by the deserializer.

May in future also be used by the serializer.

Implementations

What, if any, is the configured maximum permitted response size?

Has a persistent read buffer been configured for reading response bytes into?

Get mutable access to optional persistent response bytes buffer

Specify a maximum number of response bytes to read.

Use this if you are reading data from an untrusted source. If that source then sends a very large response we will reject it rather than attempt to read it all and thus avoid possibly running out of memory.

Save the read response bytes into a buffer for use later.

Allocate a persistent buffer that can be used by a reader to store the read response bytes into. This could be to avoid allocating a buffer for every response read, or to permit logging or storing or pretty printing of the response bytes once they have been read from the source.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.