Struct bitcoin_tor::TorController
source · pub struct TorController { /* private fields */ }
Expand description
| Controller that connects to Tor control | socket, authenticate, then create | and maintain an ephemeral onion service. |
Implementations§
source§impl TorController
impl TorController
pub fn new( base: *mut event_base, tor_control_center: &String, target: &Service ) -> Self
sourcepub fn add_onion_cb(
&mut self,
conn: &mut TorControlConnection,
reply: &TorControlReply
)
pub fn add_onion_cb( &mut self, conn: &mut TorControlConnection, reply: &TorControlReply )
| Callback for ADD_ONION result |
sourcepub fn auth_cb(
&mut self,
conn: &mut TorControlConnection,
reply: &TorControlReply
)
pub fn auth_cb( &mut self, conn: &mut TorControlConnection, reply: &TorControlReply )
| Callback for AUTHENTICATE result |
sourcepub fn authchallenge_cb(
&mut self,
conn: &mut TorControlConnection,
reply: &TorControlReply
)
pub fn authchallenge_cb( &mut self, conn: &mut TorControlConnection, reply: &TorControlReply )
| Callback for AUTHCHALLENGE result |
sourcepub fn protocolinfo_cb(
&mut self,
conn: &mut TorControlConnection,
reply: &TorControlReply
)
pub fn protocolinfo_cb( &mut self, conn: &mut TorControlConnection, reply: &TorControlReply )
| Callback for PROTOCOLINFO result |
sourcepub fn connected_cb(&mut self, conn: &mut TorControlConnection)
pub fn connected_cb(&mut self, conn: &mut TorControlConnection)
| Callback after successful connection |
sourcepub fn disconnected_cb(&mut self, conn: &mut TorControlConnection)
pub fn disconnected_cb(&mut self, conn: &mut TorControlConnection)
| Callback after connection lost or failed | connection attempt |
sourcepub fn get_private_key_file(&mut self) -> Box<Path>
pub fn get_private_key_file(&mut self) -> Box<Path>
| Get name of file to store private key | in |
sourcepub fn reconnect_cb(&mut self, fd: EvutilSocket, what: i16, arg: *mut c_void)
pub fn reconnect_cb(&mut self, fd: EvutilSocket, what: i16, arg: *mut c_void)
| Callback for reconnect timer |
Trait Implementations§
source§impl Default for TorController
impl Default for TorController
Auto Trait Implementations§
impl RefUnwindSafe for TorController
impl !Send for TorController
impl !Sync for TorController
impl Unpin for TorController
impl UnwindSafe for TorController
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more