pub struct AdapterRegister(/* private fields */);
Implementations§
Source§impl AdapterRegister
impl AdapterRegister
pub fn instance() -> &'static Self
pub async fn clean(&self, passcode: usize)
pub async fn set_accept(&self, tx: UnboundedSender<()>)
pub async fn insert(&self, addr: SocketAddr, tx: UnboundedSender<Record>)
pub async fn remove(&self, addr: &SocketAddr)
pub async fn send(&self, msg: Vec<u8>)
Auto Trait Implementations§
impl !Freeze for AdapterRegister
impl !RefUnwindSafe for AdapterRegister
impl Send for AdapterRegister
impl Sync for AdapterRegister
impl Unpin for AdapterRegister
impl !UnwindSafe for AdapterRegister
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