Struct shadowsocks::manager::listener::ManagerListener
source · pub struct ManagerListener { /* private fields */ }
Expand description
Manager server Listener
Implementations§
source§impl ManagerListener
impl ManagerListener
sourcepub async fn bind(
context: &Context,
bind_addr: &ManagerAddr
) -> Result<ManagerListener>
pub async fn bind( context: &Context, bind_addr: &ManagerAddr ) -> Result<ManagerListener>
Create a ManagerDatagram
binding to requested bind_addr
pub async fn recv_from( &mut self ) -> Result<(ManagerRequest, ManagerSocketAddr), Error>
pub async fn send_to<P: ManagerProtocol>( &mut self, data: &P, target: &ManagerSocketAddr ) -> Result<(), Error>
pub fn local_addr(&self) -> Result<ManagerSocketAddr>
Auto Trait Implementations§
impl RefUnwindSafe for ManagerListener
impl Send for ManagerListener
impl Sync for ManagerListener
impl Unpin for ManagerListener
impl UnwindSafe for ManagerListener
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