Trait shadowsocks::manager::protocol::ManagerProtocol[][src]

pub trait ManagerProtocol: Sized {
    fn from_bytes(buf: &[u8]) -> Result<Self, Error>;
fn to_bytes(&self) -> Result<Vec<u8>, Error>; }

Abstract Manager Protocol

Required methods

fn from_bytes(buf: &[u8]) -> Result<Self, Error>[src]

fn to_bytes(&self) -> Result<Vec<u8>, Error>[src]

Loading content...

Implementors

impl ManagerProtocol for ManagerRequest[src]

impl ManagerProtocol for AddResponse[src]

impl ManagerProtocol for ListRequest[src]

impl ManagerProtocol for ListResponse[src]

impl ManagerProtocol for PingRequest[src]

impl ManagerProtocol for PingResponse[src]

impl ManagerProtocol for RemoveRequest[src]

impl ManagerProtocol for RemoveResponse[src]

impl ManagerProtocol for StatRequest[src]

impl ManagerProtocol for AddRequest[src]

impl<E: ToString> ManagerProtocol for ErrorResponse<E>[src]

Loading content...