Struct speech_dispatcher::Connection
source · [−]pub struct Connection(pub *mut SPDConnection, _);
Tuple Fields
0: *mut SPDConnection
Implementations
pub fn open<S: Into<String>>(
client_name: S,
connection_name: S,
user_name: S,
mode: Mode
) -> Result<Self, Error>
pub unsafe fn open2<S: Into<String>>(
client_name: S,
connection_name: S,
user_name: S,
mode: Mode,
address: *mut Address,
autospawn: bool
) -> Result<Self, Error>
pub fn set_synthesis_voice_uid<S: Into<String>>(
&self,
voice_name: S,
target_uid: u32
) -> Result<(), Error>
pub fn set_notification<S: Into<String>>(
&self,
notification: Notification,
state: S
) -> Result<(), Error>
pub fn set_punctuation_uid(
&self,
punctuation: Punctuation,
target_uid: u32
) -> Result<(), Error>
pub fn set_capital_letters_uid(
&self,
capital_letters: CapitalLetters,
target_uid: u32
) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations
Mutably borrows from an owned value. Read more