Browse Source

conf/accounts.rs: add hash() method

tags/alpha-0.6.0
Manos Pitsidianakis 9 months ago
parent
commit
d6ef3567f4
Signed by: epilys GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/conf/accounts.rs

+ 4
- 0
src/conf/accounts.rs 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);

Loading…
Cancel
Save