conf/accounts.rs: add hash() method

memfd
Manos Pitsidianakis 2020-07-24 22:08:09 +03:00
parent 688060ceb6
commit d6ef3567f4
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 0 deletions

View File

@ -1010,6 +1010,10 @@ impl Account {
&self.name
}
pub fn hash(&self) -> AccountHash {
self.hash
}
pub fn load(&mut self, mailbox_hash: MailboxHash) -> result::Result<(), usize> {
if mailbox_hash == 0 {
return Err(0);