pub enum MeshEvent {
Show 16 variants
PeerJoined(PeerId),
PeerLeft(PeerId),
ChatReceived(ChatMessage),
VoiceFrame {
from: PeerId,
seq: u32,
timestamp: u64,
session: SessionId,
codec: CodecId,
payload: Vec<u8>,
},
RouteUpdated {
peer_id: PeerId,
route: PeerRoute,
},
RouteUpgraded(PeerId),
PeerCapabilities {
peer_id: PeerId,
capabilities: Capabilities,
},
PeerSessionConfig {
peer_id: PeerId,
codec: CodecId,
frame_ms: u16,
},
GroupCodec(CodecId),
StatsUpdate {
peer: PeerId,
stats: LinkStats,
global: GlobalStats,
},
PeerIdentity {
peer_id: PeerId,
public_key: Vec<u8>,
},
IncomingCall {
session: SessionId,
from: PeerId,
rndzv_srt_uri: Option<String>,
},
CallAccepted {
session: SessionId,
from: PeerId,
},
CallDeclined {
session: SessionId,
from: PeerId,
reason: Option<String>,
},
CallEnded {
session: SessionId,
},
GroupTopology {
session: SessionId,
mode: GroupMode,
},
}Variants§
PeerJoined(PeerId)
A peer joined the mesh.
PeerLeft(PeerId)
A peer left the mesh.
ChatReceived(ChatMessage)
Chat message received.
VoiceFrame
Voice packet received.
RouteUpdated
Routing info updated for a peer.
RouteUpgraded(PeerId)
Route upgraded from relay to direct.
PeerCapabilities
Peer capability advertisement received.
PeerSessionConfig
Peer session configuration received.
GroupCodec(CodecId)
StatsUpdate
PeerIdentity
IncomingCall
CallAccepted
CallDeclined
CallEnded
GroupTopology
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MeshEvent
impl RefUnwindSafe for MeshEvent
impl Send for MeshEvent
impl Sync for MeshEvent
impl Unpin for MeshEvent
impl UnwindSafe for MeshEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more