pub struct Efunguz { /* private fields */ }Implementations§
Source§impl Efunguz
impl Efunguz
pub fn new( secretkey: &str, whitelist_publickeys: &HashSet<String>, pub_port: u16, torproxy_port: u16, torproxy_host: &str, ) -> Self
pub fn add_whitelist_publickeys(&mut self, publickeys: &HashSet<String>)
pub fn del_whitelist_publickeys(&mut self, publickeys: &HashSet<String>)
pub fn clear_whitelist_publickeys(&mut self)
pub fn read_whitelist_publickeys(&mut self, filepath: &str)
pub fn add_ehypha( &mut self, publickey: &str, onion: &str, port: u16, ) -> Result<&mut Ehypha, String>
pub fn get_ehypha(&self, publickey: &str) -> Option<&Ehypha>
pub fn get_mut_ehypha(&mut self, publickey: &str) -> Option<&mut Ehypha>
pub fn del_ehypha(&mut self, publickey: &str) -> Result<(), String>
pub fn emit_etale(&mut self, title: &str, parts: &Vec<Vec<u8>>)
pub fn update(&mut self)
pub fn in_attempted_num(&self) -> u64
pub fn in_permitted_num(&self) -> u64
pub fn in_absorbing_num(&self) -> u64
pub fn t_last_attempt(&self) -> i64
pub fn t_last_permit(&self) -> i64
pub fn t_last_disconnect(&self) -> i64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Efunguz
impl RefUnwindSafe for Efunguz
impl !Send for Efunguz
impl !Sync for Efunguz
impl Unpin for Efunguz
impl UnwindSafe for Efunguz
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