pub struct I2pConfig {
pub name: String,
pub interface_id: InterfaceId,
pub sam_host: String,
pub sam_port: u16,
pub peers: Vec<String>,
pub connectable: bool,
pub storage_dir: PathBuf,
}Expand description
Configuration for the I2P interface.
Fields§
§name: String§interface_id: InterfaceId§sam_host: StringSAM bridge host (default “127.0.0.1”).
sam_port: u16SAM bridge port (default 7656).
peers: Vec<String>List of .b32.i2p peer addresses (or full base64 destinations) to connect to.
connectable: boolWhether to accept inbound connections.
storage_dir: PathBufDirectory for key persistence (typically {config_dir}/storage).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for I2pConfig
impl RefUnwindSafe for I2pConfig
impl Send for I2pConfig
impl Sync for I2pConfig
impl Unpin for I2pConfig
impl UnwindSafe for I2pConfig
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