MAX_USERNAME

Constant MAX_USERNAME 

Source
pub const MAX_USERNAME: usize = 31;
Expand description

Maximum username for client or server

31 is the limit for various Linux APIs like wtmp A larger limit can be set with larger crate feature