Skip to main content

parse_auth_user

Function parse_auth_user 

Source
pub fn parse_auth_user(frame: &Frame) -> Result<(&str, &str), FrameError>
Expand description

Parse (username, password) out of an AuthUser frame. Both slices must be valid UTF-8; truncated payloads surface as a clear protocol error.