pub struct CallHarness { /* private fields */ }Expand description
A call harness that exercises the application API over an in-process signalling path.
Implementations§
Source§impl CallHarness
impl CallHarness
Sourcepub fn new() -> Result<Self, HarnessError>
pub fn new() -> Result<Self, HarnessError>
Create a harness with two ordinary transport handles and no signalling sockets.
Call establishment still opens the RTP/RTCP ports owned by sipx-call; the in-process
boundary applies to SIP signalling, not media.
Sourcepub async fn dial(
&mut self,
to: Uri,
options: DialOptions,
) -> Result<PendingCall<'_>, HarnessError>
pub async fn dial( &mut self, to: Uri, options: DialOptions, ) -> Result<PendingCall<'_>, HarnessError>
Begin a real sipx_call::dial and return only this exchange’s invitation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CallHarness
impl !UnwindSafe for CallHarness
impl Freeze for CallHarness
impl Send for CallHarness
impl Sync for CallHarness
impl Unpin for CallHarness
impl UnsafeUnpin for CallHarness
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more