Struct panorama_imap::client::inner::Client[][src]

pub struct Client<C> {
    ctr: usize,
    config: ClientConfig,
    pub(crate) write_tx: UnboundedSender<String>,
    cmd_tx: UnboundedSender<(String, Command, UnboundedSender<Response>)>,
    greeting_rx: Option<Receiver<()>>,
    writer_exit_tx: Sender<()>,
    writer_handle: JoinHandle<Result<WriteHalf<C>>>,
    listener_exit_tx: Sender<()>,
    listener_handle: JoinHandle<Result<ReadHalf<C>>>,
}

Fields

ctr: usizeconfig: ClientConfigwrite_tx: UnboundedSender<String>cmd_tx: UnboundedSender<(String, Command, UnboundedSender<Response>)>greeting_rx: Option<Receiver<()>>writer_exit_tx: Sender<()>writer_handle: JoinHandle<Result<WriteHalf<C>>>listener_exit_tx: Sender<()>listener_handle: JoinHandle<Result<ReadHalf<C>>>

Implementations

impl<C> Client<C> where
    C: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

pub fn new(conn: C, config: ClientConfig) -> Self[src]

pub async fn wait_for_greeting(&mut self) -> Result<()>[src]

pub async fn execute(&mut self, cmd: Command) -> Result<ResponseStream>[src]

pub async fn has_capability(&mut self, cap: impl AsRef<str>) -> Result<bool>[src]

pub async fn upgrade(self) -> Result<Client<TlsStream<C>>>[src]

Auto Trait Implementations

impl<C> !RefUnwindSafe for Client<C>[src]

impl<C> Send for Client<C> where
    C: Send
[src]

impl<C> Sync for Client<C> where
    C: Send
[src]

impl<C> Unpin for Client<C>[src]

impl<C> !UnwindSafe for Client<C>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.