Struct fizyr_rpc::UnixConfig
source · #[non_exhaustive]pub struct UnixConfig {
pub max_body_len_read: u32,
pub max_body_len_write: u32,
pub max_fds_read: u32,
pub max_fds_write: u32,
pub endian: Endian,
}
Expand description
Configuration for Unix datagram transports.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.max_body_len_read: u32
The maximum body size for incoming messages.
If a message arrives with a larger body size, an error is returned and the message itself is dropped.
Datagram transports remain usable when a message is dropped.
max_body_len_write: u32
The maximum body size for outgoing messages.
If a message is given for sending with a larger body than this size, the message is discarded and an error is returned.
Datagram transports remain usable when a message is dropped.
max_fds_read: u32
The maximum number of attached file descriptors when reading messages.
max_fds_write: u32
The maximum number of attached file descriptors for sending messages.
endian: Endian
The endianness to use when encoding/decoding header fields.
The encoding and serialization of message bodies is up to the application code, and it not affected by this configuration parameter.
Trait Implementations§
source§impl Clone for UnixConfig
impl Clone for UnixConfig
source§fn clone(&self) -> UnixConfig
fn clone(&self) -> UnixConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more