pub struct PendingCall<'a> { /* private fields */ }Expand description
One invitation whose dial task is waiting for an application answer.
Implementations§
Source§impl PendingCall<'_>
impl PendingCall<'_>
Sourcepub const fn invitation(&self) -> &Incoming
pub const fn invitation(&self) -> &Incoming
The exact invitation associated with this pending call.
Sourcepub async fn answer(
self,
media_address: IpAddr,
) -> Result<EstablishedCall, HarnessError>
pub async fn answer( self, media_address: IpAddr, ) -> Result<EstablishedCall, HarnessError>
Answer through sipx_call::answer and wait until the matching ACK reaches the call.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for PendingCall<'a>
impl<'a> !RefUnwindSafe for PendingCall<'a>
impl<'a> Send for PendingCall<'a>
impl<'a> Sync for PendingCall<'a>
impl<'a> Unpin for PendingCall<'a>
impl<'a> UnsafeUnpin for PendingCall<'a>
impl<'a> !UnwindSafe for PendingCall<'a>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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