Skip to main content

dial_until

Function dial_until 

Source
pub async fn dial_until<F>(
    endpoint: &Handle,
    target: Target,
    to: &Uri,
    options: &DialOptions,
    cancelled: F,
) -> Result<Call>
where F: Future<Output = ()> + Send,
Expand description

Place a call until it completes or cancelled resolves.

This has the same bounded authentication and session-interval retries as dial. If cancellation wins while an INVITE is outstanding, the invitation is withdrawn before this returns, including the ACK-then-BYE race when a successful final response was already in flight. The returned Error::Cancelled distinguishes that local stop from a peer refusal.