pub struct EmailClient { /* private fields */ }Implementations§
Source§impl EmailClient
impl EmailClient
pub fn new( incoming: Box<dyn IncomingProtocol + Sync + Send>, outgoing: Box<dyn OutgoingProtocol + Sync + Send>, ) -> Self
pub async fn send_keep_alive(&mut self) -> Result<()>
pub fn should_keep_alive(&self) -> bool
pub async fn get_mailbox_list(&mut self) -> Result<Node<Mailbox>>
pub async fn get_mailbox<BoxId: AsRef<str>>( &mut self, mailbox_id: BoxId, ) -> Result<Node<Mailbox>>
pub async fn rename_mailbox<OldName: AsRef<str>, NewName: AsRef<str>>( &mut self, old_name: OldName, new_name: NewName, ) -> Result<()>
pub async fn delete_mailbox<BoxId: AsRef<str>>( &mut self, box_id: BoxId, ) -> Result<()>
pub async fn create_mailbox<BoxName: AsRef<str>>( &mut self, box_id: BoxName, ) -> Result<()>
pub async fn get_messages<BoxId: AsRef<str>, S: Into<usize>, E: Into<usize>>( &mut self, box_id: BoxId, start: S, end: E, ) -> Result<Vec<Preview>>
pub async fn get_message<BoxId: AsRef<str>, MessageId: AsRef<str>>( &mut self, box_id: BoxId, message_id: MessageId, ) -> Result<Message>
pub async fn send_message<M: TryInto<SendableMessage, Error = impl Display>>( &mut self, message: M, ) -> Result<()>
pub async fn logout(&mut self) -> Result<()>
Trait Implementations§
Source§impl From<EmailClient> for ThreadableEmailClient
impl From<EmailClient> for ThreadableEmailClient
Source§fn from(client: EmailClient) -> Self
fn from(client: EmailClient) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EmailClient
impl !RefUnwindSafe for EmailClient
impl Send for EmailClient
impl Sync for EmailClient
impl Unpin for EmailClient
impl !UnwindSafe for EmailClient
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