Struct shadowsocks::manager::client::ManagerClient
source · pub struct ManagerClient { /* private fields */ }
Expand description
Client for communicating with Manager
Implementations§
source§impl ManagerClient
impl ManagerClient
sourcepub async fn add(&mut self, req: &AddRequest) -> Result<AddResponse, Error>
pub async fn add(&mut self, req: &AddRequest) -> Result<AddResponse, Error>
Send command
sourcepub async fn list(&mut self, req: &ListRequest) -> Result<ListResponse, Error>
pub async fn list(&mut self, req: &ListRequest) -> Result<ListResponse, Error>
Send command
sourcepub async fn ping(&mut self, req: &PingRequest) -> Result<PingResponse, Error>
pub async fn ping(&mut self, req: &PingRequest) -> Result<PingResponse, Error>
Send command
sourcepub async fn remove(
&mut self,
req: &RemoveRequest
) -> Result<RemoveResponse, Error>
pub async fn remove( &mut self, req: &RemoveRequest ) -> Result<RemoveResponse, Error>
Send command
sourcepub async fn connect(
context: &Context,
bind_addr: &ManagerAddr,
connect_opts: &ConnectOpts
) -> Result<ManagerClient, Error>
pub async fn connect( context: &Context, bind_addr: &ManagerAddr, connect_opts: &ConnectOpts ) -> Result<ManagerClient, Error>
Create a ManagerDatagram
for sending data to manager
Auto Trait Implementations§
impl RefUnwindSafe for ManagerClient
impl Send for ManagerClient
impl Sync for ManagerClient
impl Unpin for ManagerClient
impl UnwindSafe for ManagerClient
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