Struct melib::nntp::NntpConnection
source · pub struct NntpConnection {
pub stream: Result<NntpStream>,
pub server_conf: NntpServerConf,
pub uid_store: Arc<UIDStore>,
}
Fields§
§stream: Result<NntpStream>
§server_conf: NntpServerConf
§uid_store: Arc<UIDStore>
Implementations§
source§impl NntpConnection
impl NntpConnection
pub fn new_connection( server_conf: &NntpServerConf, uid_store: Arc<UIDStore> ) -> Self
pub fn connect<'a>( &'a mut self ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>
pub fn read_response<'a>( &'a mut self, ret: &'a mut String, is_multiline: bool, expected_reply_code: &'static [&str] ) -> Pin<Box<dyn Future<Output = Result<u32>> + Send + 'a>>
pub async fn read_lines( &mut self, ret: &mut String, is_multiline: bool, expected_reply_code: &[&str] ) -> Result<()>
pub async fn send_command(&mut self, command: &[u8]) -> Result<()>
pub fn add_refresh_event(&mut self, ev: RefreshEvent)
pub async fn select_group( &mut self, mailbox_hash: MailboxHash, force: bool, res: &mut String ) -> Result<()>
pub async fn send_multiline_data_block(&mut self, message: &[u8]) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NntpConnection
impl !RefUnwindSafe for NntpConnection
impl Send for NntpConnection
impl Sync for NntpConnection
impl Unpin for NntpConnection
impl !UnwindSafe for NntpConnection
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