Expand description
POP3 packet builder.
Provides a fluent API for constructing POP3 command and reply payloads.
§Examples
use stackforge_core::layer::pop3::builder::Pop3Builder;
// Build a USER command
let pkt = Pop3Builder::new().user("alice").build();
assert_eq!(pkt, b"USER alice\r\n");
// Build a +OK response
let pkt = Pop3Builder::new().ok("POP3 server ready").build();
assert_eq!(pkt, b"+OK POP3 server ready\r\n");Structs§
- Pop3
Builder - Builder for POP3 messages (commands and replies).