pub struct SignallingCall { /* private fields */ }Expand description
One confirmed INVITE dialog without SDP or media ownership.
Implementations§
Source§impl SignallingCall
impl SignallingCall
Sourcepub fn dialog(&self) -> &Dialog
pub fn dialog(&self) -> &Dialog
The confirmed dialog, for explicit dispatcher-route release and observation.
Sourcepub const fn is_acknowledged(&self) -> bool
pub const fn is_acknowledged(&self) -> bool
Whether a valid ACK has stopped the INVITE final-response retransmission.
Sourcepub const fn last_request_elapsed(&self) -> Option<Duration>
pub const fn last_request_elapsed(&self) -> Option<Duration>
Processing time from dequeuing the last routed request through its response handoff.
This is responder-side service time, not end-to-end latency. It is None before any
request has been handled and for timer-only events.
Sourcepub fn take_response_status(&mut self) -> Option<u16>
pub fn take_response_status(&mut self) -> Option<u16>
Take the status successfully sent while producing the most recent event.
Sourcepub async fn next(&mut self) -> Option<SignallingEvent>
pub async fn next(&mut self) -> Option<SignallingEvent>
Drive one routed request or final-response timer outcome.
Network-invalid input becomes a typed event and, when SIP defines one, a response. It never panics or escapes as an internal error.
Sourcepub async fn hang_up(&mut self, within: Duration) -> Result<u16>
pub async fn hang_up(&mut self, within: Duration) -> Result<u16>
Originate BYE and require a final response within within.
The duration bounds a failure; success is the observed final response rather than elapsed wall time.
Sourcepub fn stop(&mut self)
pub fn stop(&mut self)
Stop owned retransmission work without sending BYE.
Used only when another protocol outcome already ended the dialog or shutdown can no longer
reach the peer. A live established dialog should prefer Self::hang_up.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SignallingCall
impl !RefUnwindSafe for SignallingCall
impl Send for SignallingCall
impl Sync for SignallingCall
impl Unpin for SignallingCall
impl UnsafeUnpin for SignallingCall
impl !UnwindSafe for SignallingCall
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
§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>
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>
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