pass

Function pass 

Source
pub fn pass(s: &[u8]) -> Option<Pass<'_>>
Expand description

PASS string

Arguments

a server/mailbox-specific password (required)

Restrictions

may only be given in the AUTHORIZATION state immediately after a successful USER command

Examples

// C: PASS secret
use rfc1939::authorization::command::pass;
use rfc1939::types::command::Pass;
assert_eq!(pass(b"PASS secret\r\n").unwrap(), Pass { string: b"secret" })