pub struct Esl;
Expand description
Esl struct with inbound and outbound method.
Implementations§
Source§impl Esl
impl Esl
Sourcepub async fn inbound(
addr: impl ToSocketAddrs,
password: impl ToString,
) -> Result<EslConnection, EslError>
pub async fn inbound( addr: impl ToSocketAddrs, password: impl ToString, ) -> Result<EslConnection, EslError>
Creates new inbound connection to freeswitch
Sourcepub async fn outbound(addr: impl ToSocketAddrs) -> Result<Outbound, EslError>
pub async fn outbound(addr: impl ToSocketAddrs) -> Result<Outbound, EslError>
Creates new server for outbound connection
Auto Trait Implementations§
impl Freeze for Esl
impl RefUnwindSafe for Esl
impl Send for Esl
impl Sync for Esl
impl Unpin for Esl
impl UnwindSafe for Esl
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