pub struct I2pTransport { /* private fields */ }Implementations§
Source§impl I2pTransport
impl I2pTransport
Source§impl I2pTransport
impl I2pTransport
Sourcepub fn session_probe(&self) -> Option<SessionProbe>
pub fn session_probe(&self) -> Option<SessionProbe>
A probe of the sessions up right now, if any.
Trait Implementations§
Source§impl Drop for I2pTransport
impl Drop for I2pTransport
Source§impl Transport for I2pTransport
impl Transport for I2pTransport
Source§fn new_identity<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new_identity<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Both destinations replaced; returns once the old ones are gone (or the keeper is busy building, when the next sessions are fresh anyway).
Source§fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Ends the keeper, which closes both control sockets: the router drops the sessions.
fn kind(&self) -> Kind
Source§fn route(&self, dest: &Dest, port: u16, ctx: &RouteCtx<'_>) -> Route
fn route(&self, dest: &Dest, port: u16, ctx: &RouteCtx<'_>) -> Route
This kind’s rules, after the shared pre-router. Pure, no I/O.
Source§fn dial<'life0, 'life1, 'async_trait>(
&'life0 self,
route: &'life1 Route,
lane: Lane,
) -> Pin<Box<dyn Future<Output = Result<(BoxedStream, Dialed), ConnectError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn dial<'life0, 'life1, 'async_trait>(
&'life0 self,
route: &'life1 Route,
lane: Lane,
) -> Pin<Box<dyn Future<Output = Result<(BoxedStream, Dialed), ConnectError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Open the stream
route names for lane. Ok only once the far end exists.fn ready(&self) -> bool
fn kind_status(&self) -> KindStatus
fn into_any(self: Arc<Self>) -> Arc<dyn Any + Send + Sync> ⓘ
Auto Trait Implementations§
impl Forget for I2pTransport
impl Freeze for I2pTransport
impl Move for I2pTransport
impl RefUnwindSafe for I2pTransport
impl Send for I2pTransport
impl Sync for I2pTransport
impl Unpin for I2pTransport
impl UnsafeUnpin for I2pTransport
impl UnwindSafe for I2pTransport
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more