#[non_exhaustive]pub enum CancelInviteOutcome {
Sent(Box<InviteCancellation>),
FinalResponse {
invite: TransactionKey,
response: Response,
},
InviteTimeout {
invite: TransactionKey,
},
InviteTransportError {
invite: TransactionKey,
error: Option<Error>,
},
}Expand description
The result of asking to cancel one exact outgoing INVITE transaction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sent(Box<InviteCancellation>)
The provisional-response precondition was met and one CANCEL transaction was created.
FinalResponse
A final INVITE response arrived before a CANCEL transaction was created.
Fields
§
invite: TransactionKeyThe INVITE transaction that produced the response.
§
response: ResponseThe final response that won the race.
InviteTimeout
The INVITE timed out before a provisional response admitted CANCEL.
Fields
§
invite: TransactionKeyThe INVITE transaction that timed out.
InviteTransportError
The INVITE transport failed before a provisional response admitted CANCEL.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CancelInviteOutcome
impl !RefUnwindSafe for CancelInviteOutcome
impl Send for CancelInviteOutcome
impl Sync for CancelInviteOutcome
impl Unpin for CancelInviteOutcome
impl UnsafeUnpin for CancelInviteOutcome
impl !UnwindSafe for CancelInviteOutcome
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