Skip to main content

with_receive_limits

Function with_receive_limits 

Source
pub fn with_receive_limits<T>(limits: ReceiveLimits, f: impl FnOnce() -> T) -> T
Expand description

Decode under limits for the duration of f — the receiver’s admission gate. Restores the prior limits afterward (so it nests). Pair with message_from_wire.