Skip to main content

ImapSmtpRemote

Struct ImapSmtpRemote 

Source
pub struct ImapSmtpRemote<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> ImapSmtpRemote<'a>

Source

pub fn new(config: &'a MailConfig) -> Self

Trait Implementations§

Source§

impl MailRemote for ImapSmtpRemote<'_>

Source§

fn list_mailboxes(&self) -> Result<Value>

Source§

fn action_mailbox_folder(&self, mailbox_id: &str) -> Result<String>

Source§

fn append_message( &self, folder: &str, raw_eml: &[u8], draft: bool, ) -> Result<()>

Source§

fn move_message( &self, source_folder: &str, uid: u64, target_folder: &str, rfc822_message_id: Option<&str>, ) -> Result<MoveOutcome>

Source§

fn add_flags( &self, source_folder: &str, uid: u64, flags: &[String], ) -> Result<()>

Source§

fn send_raw_message( &self, envelope_from: &str, envelope_to: &[String], raw: &[u8], ) -> Result<()>

Source§

fn find_by_message_id( &self, folder: &str, rfc822_message_id: &str, ) -> Result<Option<RemoteLocation>>

Auto Trait Implementations§

§

impl<'a> !Freeze for ImapSmtpRemote<'a>

§

impl<'a> !RefUnwindSafe for ImapSmtpRemote<'a>

§

impl<'a> !Sync for ImapSmtpRemote<'a>

§

impl<'a> !UnwindSafe for ImapSmtpRemote<'a>

§

impl<'a> Send for ImapSmtpRemote<'a>

§

impl<'a> Unpin for ImapSmtpRemote<'a>

§

impl<'a> UnsafeUnpin for ImapSmtpRemote<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V