BackendOp: add copy_to() method
parent
5c204d3b69
commit
391058a59c
|
@ -437,6 +437,9 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
|
||||||
/// ```
|
/// ```
|
||||||
pub trait BackendOp: ::std::fmt::Debug + ::std::marker::Send {
|
pub trait BackendOp: ::std::fmt::Debug + ::std::marker::Send {
|
||||||
fn as_bytes(&mut self) -> ResultFuture<Vec<u8>>;
|
fn as_bytes(&mut self) -> ResultFuture<Vec<u8>>;
|
||||||
|
fn copy_to(&self, _mailbox_hash: MailboxHash) -> ResultFuture<()> {
|
||||||
|
Err(MeliError::new("Unimplemented."))
|
||||||
|
}
|
||||||
fn fetch_flags(&self) -> ResultFuture<Flag>;
|
fn fetch_flags(&self) -> ResultFuture<Flag>;
|
||||||
fn set_flag(&mut self, flag: Flag, value: bool) -> ResultFuture<()>;
|
fn set_flag(&mut self, flag: Flag, value: bool) -> ResultFuture<()>;
|
||||||
fn set_tag(&mut self, tag: String, value: bool) -> ResultFuture<()>;
|
fn set_tag(&mut self, tag: String, value: bool) -> ResultFuture<()>;
|
||||||
|
|
Loading…
Reference in New Issue