pub struct ActivityReceivedEvent {
pub handle: SmartHandle<SPXEVENTHANDLE>,
pub activity: String,
}
Expand description
Event passed into callback registered by DialogServiceConnector::set_activity_received_cb.
Fields
handle: SmartHandle<SPXEVENTHANDLE>
activity: String
Implementations
sourceimpl ActivityReceivedEvent
impl ActivityReceivedEvent
pub fn from_handle(handle: SPXEVENTHANDLE) -> Result<ActivityReceivedEvent>
pub fn has_audio(&self) -> bool
pub fn get_audio(&self) -> Result<PullAudioOutputStream>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ActivityReceivedEvent
impl Send for ActivityReceivedEvent
impl !Sync for ActivityReceivedEvent
impl Unpin for ActivityReceivedEvent
impl UnwindSafe for ActivityReceivedEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more