pub struct EndpointConfig { /* private fields */ }
Expand description

Global configuration for the endpoint, affecting all associations

Default values should be suitable for most internet applications.

Implementations§

Create a default config

Supply a custom Association ID generator factory

Called once by each Endpoint constructed from this configuration to obtain the AID generator which will be used to generate the AIDs used for incoming packets on all associations involving that Endpoint. A custom AID generator allows applications to embed information in local association IDs, e.g. to support stateless packet-level load balancers.

EndpointConfig::new() applies a default random AID generator factory. This functions accepts any customized AID generator to reset AID generator factory that implements the AssociationIdGenerator trait.

Maximum payload size accepted from peers.

The default is suitable for typical internet applications. Applications which expect to run on networks supporting Ethernet jumbo frames or similar should set this appropriately.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.