pub struct Plugin { /* private fields */ }
Expand description
server plugin: CLIENT -> PLUGIN -> SERVER -> REMOTE
plugin listen to inbound address of server
server listen to local_addr
Implementations§
Source§impl Plugin
impl Plugin
pub fn start( cfg: &PluginConfig, remote_host: &str, remote_port: &str, ) -> Result<Plugin>
pub async fn join(self) -> Result<ExitStatus>
pub fn local_addr(&self) -> SocketAddr
Auto Trait Implementations§
impl Freeze for Plugin
impl !RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl !UnwindSafe for Plugin
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