pub struct SessionParticipant { /* private fields */ }
Expand description
Participate in a session.
Implementations§
Trait Implementations§
Source§impl From<SessionParticipant> for Transport
impl From<SessionParticipant> for Transport
Source§fn from(value: SessionParticipant) -> Self
fn from(value: SessionParticipant) -> Self
Converts to this type from the input type.
Source§impl SessionEventHandler for SessionParticipant
impl SessionEventHandler for SessionParticipant
Source§fn handle_event<'life0, 'async_trait>(
&'life0 mut self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_event<'life0, 'async_trait>(
&'life0 mut self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle joining a session for a participant.
Source§fn into_transport(self) -> Transport
fn into_transport(self) -> Transport
Consume this session handler into the underlying transport.
Auto Trait Implementations§
impl !Freeze for SessionParticipant
impl !RefUnwindSafe for SessionParticipant
impl Send for SessionParticipant
impl Sync for SessionParticipant
impl Unpin for SessionParticipant
impl !UnwindSafe for SessionParticipant
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