[−][src]Struct i2p_client::Session
Methods
impl Session
[src]
pub fn create<A: ToSocketAddrs>(
sam_addr: A,
destination: &str,
nickname: &str,
style: SessionStyle
) -> Result<Session, Error>
[src]
sam_addr: A,
destination: &str,
nickname: &str,
style: SessionStyle
) -> Result<Session, Error>
pub fn sam_api(&self) -> Result<SocketAddr>
[src]
pub fn naming_lookup(&mut self, name: &str) -> Result<String>
[src]
pub fn duplicate(&self) -> Result<Session>
[src]
pub fn send_packet(&mut self, packet: Packet)
[src]
pub fn recv_packet(&mut self) -> Result<Packet, Error>
[src]
pub fn ping(&mut self, msg: &str) -> Option<String>
[src]
pub fn site(&mut self, host_dest: &str) -> Result<Vec<u8>, Error>
[src]
pub fn close(&mut self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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>,