1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-07-22 05:19:38 +00:00

Derive Debug.

This commit is contained in:
Nolan Darilek 2020-11-02 21:44:47 -06:00
parent 551bb1292e
commit cf0ad2221e
7 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ use objc::*;
use crate::{Backend, BackendId, Error, Features, UtteranceId};
#[derive(Clone)]
#[derive(Clone, Debug)]
pub(crate) struct AppKit(*mut Object, *mut Object);
impl AppKit {

View File

@ -11,7 +11,7 @@ use objc::{class, declare::ClassDecl, msg_send, sel, sel_impl};
use crate::{Backend, BackendId, Error, Features, UtteranceId, CALLBACKS};
#[derive(Clone)]
#[derive(Clone, Debug)]
pub(crate) struct AvFoundation {
id: BackendId,
delegate: *mut Object,

View File

@ -8,7 +8,7 @@ use speech_dispatcher::*;
use crate::{Backend, BackendId, Error, Features, UtteranceId, CALLBACKS};
#[derive(Clone)]
#[derive(Clone, Debug)]
pub(crate) struct SpeechDispatcher(Connection);
lazy_static! {

View File

@ -4,7 +4,7 @@ use tolk::Tolk as TolkPtr;
use crate::{Backend, BackendId, Error, Features, UtteranceId};
#[derive(Clone)]
#[derive(Clone, Debug)]
pub(crate) struct Tolk(TolkPtr);
impl Tolk {

View File

@ -12,7 +12,7 @@ use web_sys::{
use crate::{Backend, BackendId, Error, Features, UtteranceId, CALLBACKS};
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct Web {
id: BackendId,
rate: f32,

View File

@ -21,7 +21,7 @@ impl From<winrt::Error> for Error {
}
}
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct WinRT {
id: BackendId,
synth: SpeechSynthesizer,

View File

@ -110,7 +110,7 @@ pub enum Error {
}
#[clonable]
trait Backend: Clone {
trait Backend: Clone + std::fmt::Debug {
fn id(&self) -> Option<BackendId>;
fn supported_features(&self) -> Features;
fn speak(&mut self, text: &str, interrupt: bool) -> Result<Option<UtteranceId>, Error>;