pub struct NntpResponse {
    pub status_code: u16,
    pub is_multiline: bool,
    pub data: Vec<u8>,
}Expand description
Represents a parsed NNTP response
Fields§
§status_code: u16Status code (e.g., 200, 381, 500)
is_multiline: boolWhether this is a multiline response
data: Vec<u8>Complete response data including status line
Implementations§
Source§impl NntpResponse
 
impl NntpResponse
Sourcepub fn parse_status_code(data: &[u8]) -> Option<u16>
 
pub fn parse_status_code(data: &[u8]) -> Option<u16>
Parse a status code from response data
Sourcepub fn is_multiline_response(status_code: u16) -> bool
 
pub fn is_multiline_response(status_code: u16) -> bool
Check if a response indicates a multiline response
Sourcepub fn has_multiline_terminator(data: &[u8]) -> bool
 
pub fn has_multiline_terminator(data: &[u8]) -> bool
Check if data contains the end-of-multiline marker
Trait Implementations§
Source§impl Clone for NntpResponse
 
impl Clone for NntpResponse
Source§fn clone(&self) -> NntpResponse
 
fn clone(&self) -> NntpResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for NntpResponse
 
impl Debug for NntpResponse
Source§impl PartialEq for NntpResponse
 
impl PartialEq for NntpResponse
impl StructuralPartialEq for NntpResponse
Auto Trait Implementations§
impl Freeze for NntpResponse
impl RefUnwindSafe for NntpResponse
impl Send for NntpResponse
impl Sync for NntpResponse
impl Unpin for NntpResponse
impl UnwindSafe for NntpResponse
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