Skip to navigation

Function parse_worker_max_message_bytes

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub fn parse_worker_max_message_bytes(value: &str) -> Result<usize, String>

Parses the positive decimal byte limit shared by Rust and Python workers.

The signed 32-bit ceiling matches Python gRPC’s channel option representation.

Errors

Returns an error unless the value is an ASCII decimal integer in 1..=i32::MAX.