Struct panorama_imap::client::Client [−][src]
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]
C: AsyncRead + AsyncWrite + Unpin + Send + 'static,
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]
C: Send,
impl<C> Sync for Client<C> where
C: Send, [src]
C: Send,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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.
pub 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>,