Struct shadowsocks::manager::client::ManagerClient [−][src]
Client for communicating with Manager
Implementations
impl ManagerClient
[src]
pub async fn add(&mut self, req: &AddRequest) -> Result<AddResponse, Error>
[src]
Send command
pub async fn list(&mut self, req: &ListRequest) -> Result<ListResponse, Error>
[src]
Send command
pub async fn ping(&mut self, req: &PingRequest) -> Result<PingResponse, Error>
[src]
Send command
pub async fn remote(
&mut self,
req: &RemoveRequest
) -> Result<RemoveResponse, Error>
[src]
&mut self,
req: &RemoveRequest
) -> Result<RemoveResponse, Error>
Send command
pub async fn connect(
context: &Context,
bind_addr: &ManagerAddr,
connect_opts: &ConnectOpts
) -> Result<ManagerClient, Error>
[src]
context: &Context,
bind_addr: &ManagerAddr,
connect_opts: &ConnectOpts
) -> Result<ManagerClient, Error>
Create a ManagerDatagram
for sending data to manager
pub async fn stat(&mut self, req: &StatRequest) -> Result<(), Error>
[src]
Send stat
report
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,