pub enum TorEvent {
BootstrapStatus {
progress: u32,
tag: String,
summary: String,
},
BootstrapComplete,
LogReceived {
line: String,
},
OnionServicePublished {
service_id: V3OnionServiceId,
},
}
Expand description
Various events possibly returned by a TorProvider
implementation’s update()
method.
Variants§
BootstrapStatus
A status update received connecting to the Tor Network.
Fields
BootstrapComplete
Indicates successful connection to the Tor Network. The TorProvider::connect()
and TorProvider::listener()
methods may now be used.
LogReceived
Messages which may be useful for troubleshooting.
OnionServicePublished
An onion-service has been published to the Tor Network and may now be reachable by clients.
Fields
§
service_id: V3OnionServiceId
The service-id of the onion-service which has been published.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TorEvent
impl RefUnwindSafe for TorEvent
impl Send for TorEvent
impl Sync for TorEvent
impl Unpin for TorEvent
impl UnwindSafe for TorEvent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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 moreSource§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.