Efunguz

Struct Efunguz 

Source
pub struct Efunguz { /* private fields */ }

Implementations§

Source§

impl Efunguz

Source

pub fn new( secretkey: &str, whitelist_publickeys: &HashSet<String>, pub_port: u16, torproxy_port: u16, torproxy_host: &str, ) -> Self

Source

pub fn add_whitelist_publickeys(&mut self, publickeys: &HashSet<String>)

Source

pub fn del_whitelist_publickeys(&mut self, publickeys: &HashSet<String>)

Source

pub fn clear_whitelist_publickeys(&mut self)

Source

pub fn read_whitelist_publickeys(&mut self, filepath: &str)

Source

pub fn add_ehypha( &mut self, publickey: &str, onion: &str, port: u16, ) -> Result<&mut Ehypha, String>

Source

pub fn get_ehypha(&self, publickey: &str) -> Option<&Ehypha>

Source

pub fn get_mut_ehypha(&mut self, publickey: &str) -> Option<&mut Ehypha>

Source

pub fn del_ehypha(&mut self, publickey: &str) -> Result<(), String>

Source

pub fn emit_etale(&mut self, title: &str, parts: &Vec<Vec<u8>>)

Source

pub fn update(&mut self)

Source

pub fn in_attempted_num(&self) -> u64

Source

pub fn in_permitted_num(&self) -> u64

Source

pub fn in_absorbing_num(&self) -> u64

Source

pub fn t_last_attempt(&self) -> i64

Source

pub fn t_last_permit(&self) -> i64

Source

pub fn t_last_disconnect(&self) -> i64

Trait Implementations§

Source§

impl Drop for Efunguz

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

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<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, 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.