[−][src]Struct signald_rust::signald::Signald
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]
&'_ mut self,
username: String,
recipient_number: String,
message_body: Option<String>
)
Send a message to the socket
pub async fn subscribe<'_>(
&'_ mut self,
username: String
) -> Result<SignaldResponse, RecvTimeoutError>
[src]
&'_ mut self,
username: String
) -> Result<SignaldResponse, RecvTimeoutError>
Enable receiving user events such as received messages
pub async fn unsubscribe<'_>(
&'_ mut self,
username: String
) -> Result<SignaldResponse, RecvTimeoutError>
[src]
&'_ mut self,
username: String
) -> Result<SignaldResponse, RecvTimeoutError>
Disable receiving user events such as received messages
pub async fn link<'_>(&'_ mut self) -> Result<SignaldResponse, RecvTimeoutError>
[src]
Link an existing signal account
pub async fn version<'_>(
&'_ mut self
) -> Result<SignaldResponse, RecvTimeoutError>
[src]
&'_ mut self
) -> Result<SignaldResponse, RecvTimeoutError>
Get the current signald version
pub async fn list_contacts<'_>(
&'_ mut self,
username: String
) -> Result<SignaldResponse, RecvTimeoutError>
[src]
&'_ mut self,
username: String
) -> Result<SignaldResponse, RecvTimeoutError>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,