pub enum SessionHandler {
Initiator(SessionInitiator),
Participant(SessionParticipant),
}
Expand description
Variants that can create or join a session.
Variants§
Trait Implementations§
Source§impl From<SessionHandler> for Transport
impl From<SessionHandler> for Transport
Source§fn from(value: SessionHandler) -> Self
fn from(value: SessionHandler) -> Self
Converts to this type from the input type.
Source§impl SessionEventHandler for SessionHandler
impl SessionEventHandler for SessionHandler
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 an event.
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 SessionHandler
impl !RefUnwindSafe for SessionHandler
impl Send for SessionHandler
impl Sync for SessionHandler
impl Unpin for SessionHandler
impl !UnwindSafe for SessionHandler
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