[−][src]Struct i2p_client::I2PClient
Fields
local_full_dest: String
Destination used for establishing a Session (884 bytes): destination + priv key + signing key
local_dest: String
Destination used for sending a Datagram (516 bytes): destination
Methods
impl I2PClient
[src]
pub fn new(
use_local: bool,
alias: String,
min_version: &str,
max_version: &str,
max_connection_attempts: u8
) -> Result<I2PClient, Error>
[src]
use_local: bool,
alias: String,
min_version: &str,
max_version: &str,
max_connection_attempts: u8
) -> Result<I2PClient, Error>
pub fn aliases() -> HashMap<String, String>
[src]
pub fn dest(alias: &str) -> String
[src]
pub fn gen(&mut self, sig_type: SigType) -> Result<(String, String), Error>
[src]
Generate Public and Private keys IAW sig_type; return in tuple (PUB,PRIV)
pub fn send(&mut self, to: String, msg: Vec<u8>)
[src]
Send to destination UTF-8 formatted bytes
pub fn receive(&mut self) -> Result<(String, Vec<u8>), Error>
[src]
Receive tuple with from destination and message in UTF-8 formatted bytes
Auto Trait Implementations
impl RefUnwindSafe for I2PClient
impl Send for I2PClient
impl Sync for I2PClient
impl Unpin for I2PClient
impl UnwindSafe for I2PClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,