pub enum NntpCommand {
AuthUser,
AuthPass,
Stateful,
NonRoutable,
Stateless,
ArticleByMessageId,
}Expand description
NNTP command classification for different handling strategies
Variants§
AuthUser
Authentication commands (AUTHINFO USER/PASS) - intercepted locally
AuthPass
Stateful
Stateful commands that require GROUP context - REJECTED in stateless mode
NonRoutable
Commands that cannot work with per-command routing - REJECTED in per-command routing mode
Stateless
Stateless commands that can be safely proxied without state
ArticleByMessageId
Article retrieval by message-ID (stateless) - can be proxied
Implementations§
Source§impl NntpCommand
impl NntpCommand
Sourcepub fn classify(command: &str) -> Self
pub fn classify(command: &str) -> Self
Classify an NNTP command based on its content using fast byte-level parsing Ordered by frequency (most common first) for optimal short-circuit performance
Performance: Zero allocations - uses direct byte slice comparison with hardcoded case permutations instead of case conversion.
Trait Implementations§
Source§impl Debug for NntpCommand
impl Debug for NntpCommand
Source§impl PartialEq for NntpCommand
impl PartialEq for NntpCommand
impl StructuralPartialEq for NntpCommand
Auto Trait Implementations§
impl Freeze for NntpCommand
impl RefUnwindSafe for NntpCommand
impl Send for NntpCommand
impl Sync for NntpCommand
impl Unpin for NntpCommand
impl UnwindSafe for NntpCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more