pub enum ServerMessage {
Welcome(WelcomePayload),
Tracks(Vec<TrackBinding>),
Sources(Vec<SourceDescriptor>),
PeerInfo(PeerInfoPayload),
PeerJoined(PeerInfoPayload),
PeerLeft(PeerLeftPayload),
Broadcast(ServerBroadcastPayload),
RecordingChange(RecordingStateUpdate),
}Variants§
Welcome(WelcomePayload)
Tracks(Vec<TrackBinding>)
Sources(Vec<SourceDescriptor>)
PeerInfo(PeerInfoPayload)
PeerJoined(PeerInfoPayload)
PeerLeft(PeerLeftPayload)
Broadcast(ServerBroadcastPayload)
RecordingChange(RecordingStateUpdate)
Implementations§
Source§impl ServerMessage
impl ServerMessage
const ENTRIES: &'static [EnvelopeEntry<Self>]
Sourcepub fn into_envelope(self) -> Result<Envelope, Error>
pub fn into_envelope(self) -> Result<Envelope, Error>
encode one server message into the Odoo wire envelope
§Errors
returns an error when the typed payload cannot be serialized into the JSON envelope payload
pub(crate) fn decode( tag: &str, payload: Option<Value>, ) -> Result<Self, EnvelopeDecodeError>
Trait Implementations§
Source§impl Clone for ServerMessage
impl Clone for ServerMessage
Source§fn clone(&self) -> ServerMessage
fn clone(&self) -> ServerMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerMessage
impl Debug for ServerMessage
Source§impl PartialEq for ServerMessage
impl PartialEq for ServerMessage
impl Eq for ServerMessage
impl StructuralPartialEq for ServerMessage
Auto Trait Implementations§
impl Freeze for ServerMessage
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnsafeUnpin for ServerMessage
impl UnwindSafe for ServerMessage
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