sms-receiver 1.0.0

Library for receiving SMS messages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::time::Duration;

pub struct Connection(pub dbus::blocking::Connection);

impl Connection {
    pub fn new() -> Result<Self, dbus::Error> {
        Ok(Self(dbus::blocking::Connection::new_session()?))
    }

    pub fn process(&self, timeout: Duration) -> Result<(), dbus::Error> {
        self.0.process(timeout)?;
        Ok(())
    }
}