pub struct WireListener<T: HandleWire<C>, C: ConnectConfig> { /* private fields */ }Expand description
Listener server manages the state of incoming and outgoing wires
Implementations§
Source§impl<T, C> WireListener<T, C>
impl<T, C> WireListener<T, C>
Sourcepub fn new(
wire_handler: T,
connect_config: C,
connect_info: ConnectInfo,
) -> Self
pub fn new( wire_handler: T, connect_config: C, connect_info: ConnectInfo, ) -> Self
Create new Wirelistener with provided wire_handler and local connect info
Sourcepub fn run(self) -> WireConfig<C, UnboundedSender<WireListenerEvent<C>>>
pub fn run(self) -> WireConfig<C, UnboundedSender<WireListenerEvent<C>>>
Run the wirelistener and return Wireconfig handle
Auto Trait Implementations§
impl<T, C> Freeze for WireListener<T, C>
impl<T, C> RefUnwindSafe for WireListener<T, C>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for WireListener<T, C>where
T: Send,
impl<T, C> Sync for WireListener<T, C>where
T: Sync,
impl<T, C> Unpin for WireListener<T, C>
impl<T, C> UnwindSafe for WireListener<T, C>where
C: UnwindSafe,
T: UnwindSafe,
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