pub enum Event {
TextMessage {
message_id: u64,
channel: String,
from: String,
for_user: Option<String>,
text: String,
author: Option<String>,
},
AudioStart {
stream_id: u32,
channel: String,
from: String,
for_user: Option<String>,
codec: String,
codec_header: Option<String>,
packet_duration: u32,
},
AudioData {
stream_id: u32,
packet_id: u32,
data: Vec<u8>,
},
AudioStop {
stream_id: u32,
},
ChannelStatus {
channel: String,
status: String,
users_online: u32,
images: Option<Vec<ChannelImage>>,
},
OnlineStatus {
channel: String,
from: String,
online: bool,
},
}Expand description
Events that can be received from Zello
Variants§
TextMessage
Text message received
AudioStart
Audio stream start
Fields
AudioData
Audio data packet
AudioStop
Audio stream stop
ChannelStatus
Channel status update
OnlineStatus
User online/offline status
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more