pub struct ClientFactory;Expand description
Factory for creating media transport clients
Implementations§
Source§impl ClientFactory
impl ClientFactory
Sourcepub async fn create_client(
config: ClientConfig,
) -> Result<DefaultMediaTransportClient, MediaTransportError>
pub async fn create_client( config: ClientConfig, ) -> Result<DefaultMediaTransportClient, MediaTransportError>
Create a new media transport client
Sourcepub async fn create_webrtc_client(
remote_addr: SocketAddr,
) -> Result<DefaultMediaTransportClient, MediaTransportError>
pub async fn create_webrtc_client( remote_addr: SocketAddr, ) -> Result<DefaultMediaTransportClient, MediaTransportError>
Create a client for WebRTC
Sourcepub async fn create_sip_client(
remote_addr: SocketAddr,
) -> Result<DefaultMediaTransportClient, MediaTransportError>
pub async fn create_sip_client( remote_addr: SocketAddr, ) -> Result<DefaultMediaTransportClient, MediaTransportError>
Create a client for SIP
Auto Trait Implementations§
impl Freeze for ClientFactory
impl RefUnwindSafe for ClientFactory
impl Send for ClientFactory
impl Sync for ClientFactory
impl Unpin for ClientFactory
impl UnwindSafe for ClientFactory
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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