Enum nng::options::RecvMaxSize [−][src]
pub enum RecvMaxSize {}
Expand description
The maximum message size that the will be accepted from a remote peer.
If a peer attempts to send a message larger than this, then the message will be discarded. If the value of this is zero, then no limit on message sizes is enforced. This option exists to prevent certain kinds of denial-of-service attacks, where a malicious agent can claim to want to send an extraordinarily large message, without sending any data. This option can be set for the socket, but may be overridden for on a per-dialer or per-listener basis.
Note that some transports may have further message size restrictions.
Support
- Dialers and Listeners can use this with the following transports:
- TCP
- ZeroTier
- IPC
- TLS
- WebSocket
- Pipes can read this value on the following transports:
- ZeroTier
- Sockets can utilize this to set a new default value.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for RecvMaxSize
impl Send for RecvMaxSize
impl Sync for RecvMaxSize
impl Unpin for RecvMaxSize
impl UnwindSafe for RecvMaxSize
Blanket Implementations
Mutably borrows from an owned value. Read more