Struct smpp::smsc::smsc::Smsc [−][src]
pub struct Smsc { /* fields omitted */ }
Implementations
pub async fn start<L: SmscLogic + Send + Sync + 'static>(
smsc_config: SmscConfig,
smsc_logic: L
) -> AsyncResult<Arc<Mutex<Self>>>
pub async fn start<L: SmscLogic + Send + Sync + 'static>(
smsc_config: SmscConfig,
smsc_logic: L
) -> AsyncResult<Arc<Mutex<Self>>>
Bind to a TCP socket, and return an object that manages the list of connected clients. Spawns a task that deals with incoming connections, which itself spawns a further new task each time someone connects.
Auto Trait Implementations
impl !RefUnwindSafe for Smsc
impl !UnwindSafe for Smsc