[][src]Struct signald_rust::signald::Signald

pub struct Signald { /* fields omitted */ }

Methods

impl Signald[src]

pub fn connect() -> Signald[src]

Connect the default Signald socket

pub fn connect_path(socket_path: &str) -> Self[src]

Connect to a custom Signald socket

pub fn send_request(&mut self, request: &SignaldRequest)[src]

Send a signald request on the socket

pub async fn send<'_>(
    &'_ mut self,
    username: String,
    recipient_number: String,
    message_body: Option<String>
)
[src]

Send a message to the socket

pub async fn subscribe<'_>(
    &'_ mut self,
    username: String
) -> Result<SignaldResponse, RecvTimeoutError>
[src]

Enable receiving user events such as received messages

pub async fn unsubscribe<'_>(
    &'_ mut self,
    username: String
) -> Result<SignaldResponse, RecvTimeoutError>
[src]

Disable receiving user events such as received messages

Link an existing signal account

pub async fn version<'_>(
    &'_ mut self
) -> Result<SignaldResponse, RecvTimeoutError>
[src]

Get the current signald version

pub async fn list_contacts<'_>(
    &'_ mut self,
    username: String
) -> Result<SignaldResponse, RecvTimeoutError>
[src]

Query all the user's contacts

pub fn sync_contacts(&mut self, username: String)[src]

Send a contact sync request to the other devices on this account

pub fn get_rx(&mut self) -> BusReader<SignaldResponse>[src]

Get a response stream that returns every received message on the socket

Auto Trait Implementations

impl RefUnwindSafe for Signald

impl Send for Signald

impl Sync for Signald

impl Unpin for Signald

impl UnwindSafe for Signald

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.