Struct shadowsocks::manager::client::ManagerClient[][src]

pub struct ManagerClient { /* fields omitted */ }

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]

Send command

pub async fn connect(
    context: &Context,
    bind_addr: &ManagerAddr,
    connect_opts: &ConnectOpts
) -> Result<ManagerClient, Error>
[src]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,