#[non_exhaustive]pub enum HarnessError {
NoClientTransaction,
NoInvitation,
InvalidStatus(u16),
Build(BuildError),
EndpointClosed,
Call(Error),
DialTask,
DialBeforeInvitation,
MissingAck,
Transport(Error),
}Expand description
A call harness operation that could not be performed.
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.
NoClientTransaction
The request cannot create a client transaction (for example, it is an ACK).
NoInvitation
No INVITE has reached the answering side yet.
InvalidStatus(u16)
An answer helper was asked to use a status outside SIP’s status range.
Build(BuildError)
The response could not safely be built from the invitation.
EndpointClosed
The in-process endpoint closed before the exchange completed.
Call(Error)
The call framework rejected or could not establish the exchange.
DialTask
The dial task ended without returning its call result.
DialBeforeInvitation
The dial completed without ever delivering its invitation to the peer.
MissingAck
The request following the answer was not the dialog’s ACK.
Transport(Error)
The signalling harness could not construct its transport boundary.
Trait Implementations§
Source§impl Debug for HarnessError
impl Debug for HarnessError
Source§impl Display for HarnessError
impl Display for HarnessError
Source§impl Error for HarnessError
impl Error for HarnessError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BuildError> for HarnessError
impl From<BuildError> for HarnessError
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for HarnessError
impl From<Error> for HarnessError
Auto Trait Implementations§
impl !Freeze for HarnessError
impl !RefUnwindSafe for HarnessError
impl Send for HarnessError
impl Sync for HarnessError
impl Unpin for HarnessError
impl UnsafeUnpin for HarnessError
impl !UnwindSafe for HarnessError
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