[−][src]Struct pushpop::PopStream
Fields
is_authenticated: bool
stream: StreamOwned<ClientSession, TcpStream>
Methods
impl PopStream
[src]
pub fn connect<A: ToSocketAddrs>(addr: A, sess: ClientSession) -> PopStream
[src]
pub fn write(&mut self, msg: &str) -> Result<(), Error>
[src]
pub fn stat(&mut self) -> Result<Stat, String>
[src]
pub fn read_scan(&mut self) -> Scan
[src]
pub fn list_all(&mut self) -> Result<List, String>
[src]
pub fn list_one(&mut self, id: u64) -> Result<Scan, String>
[src]
pub fn retr(&mut self, id: u64) -> Result<Vec<String>, String>
[src]
pub fn dele(&mut self, id: u64) -> PopResponse
[src]
pub fn noop(&mut self) -> PopResponse
[src]
pub fn rset(&mut self) -> PopResponse
[src]
pub fn quit(&mut self) -> PopResponse
[src]
pub fn user(&mut self, user: &str) -> PopResponse
[src]
pub fn pass(&mut self, user: &str) -> PopResponse
[src]
pub fn login(&mut self, user: &str, pass: &str) -> (PopResponse, PopResponse)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,