pub enum WebrtcTransportEvent {
RemoteIce(Box<dyn RpcReqRes<WebrtcRemoteIceRequest, WebrtcRemoteIceResponse>>),
SdpPatch(Box<dyn RpcReqRes<WebrtcPatchRequest, WebrtcPatchResponse>>),
}Variants§
RemoteIce(Box<dyn RpcReqRes<WebrtcRemoteIceRequest, WebrtcRemoteIceResponse>>)
SdpPatch(Box<dyn RpcReqRes<WebrtcPatchRequest, WebrtcPatchResponse>>)
Trait Implementations§
Source§impl<L> Transport<WebrtcTransportEvent, EndpointRpcIn, RemoteTrackRpcIn, LocalTrackRpcIn, EndpointRpcOut, RemoteTrackRpcOut, LocalTrackRpcOut> for WebrtcTransport<L>where
L: TransportLifeCycle,
impl<L> Transport<WebrtcTransportEvent, EndpointRpcIn, RemoteTrackRpcIn, LocalTrackRpcIn, EndpointRpcOut, RemoteTrackRpcOut, LocalTrackRpcOut> for WebrtcTransport<L>where
L: TransportLifeCycle,
fn on_tick(&mut self, now_ms: u64) -> Result<(), TransportError>
fn on_event( &mut self, now_ms: u64, event: TransportOutgoingEvent<EndpointRpcOut, RemoteTrackRpcOut, LocalTrackRpcOut>, ) -> Result<(), TransportError>
fn on_custom_event( &mut self, now_ms: u64, event: WebrtcTransportEvent, ) -> Result<(), TransportError>
fn recv<'life0, 'async_trait>(
&'life0 mut self,
now_ms: u64,
) -> Pin<Box<dyn Future<Output = Result<TransportIncomingEvent<EndpointRpcIn, RemoteTrackRpcIn, LocalTrackRpcIn>, TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 mut self,
_now_ms: u64,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for WebrtcTransportEvent
impl !RefUnwindSafe for WebrtcTransportEvent
impl Send for WebrtcTransportEvent
impl !Sync for WebrtcTransportEvent
impl Unpin for WebrtcTransportEvent
impl !UnwindSafe for WebrtcTransportEvent
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