pub enum AgentError {
Failed,
AlreadyExists,
AlreadyInProgress,
NotInProgress,
ResourceNotFound,
Malformed,
WrongImplementation,
ConnectionClosed,
StunParse,
StunWrite,
CandidateParse(ParseCandidateError),
ProtocolViolation,
}Expand description
Errors that can be returned as a result of agent operations.
Variants§
Failed
Failed for an unspecified reason.
AlreadyExists
The specified resource already exists and cannot be added.
AlreadyInProgress
The operation is already in progress.
NotInProgress
The operation is not in progress.
ResourceNotFound
Could not find the specified resource.
Malformed
The data provided was not in the correct format.
WrongImplementation
This data is not handled by this implementation.
ConnectionClosed
The connection to the remote has been closed.
StunParse
Parsing the STUN message failed.
StunWrite
Writing the STUN message failed.
CandidateParse(ParseCandidateError)
Parsing the candidate failed.
ProtocolViolation
Data was received that does not match the protocol specifications.
Trait Implementations§
Source§impl Debug for AgentError
impl Debug for AgentError
Source§impl Display for AgentError
impl Display for AgentError
Source§impl Error for AgentError
impl Error for AgentError
1.30.0 · 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<ParseCandidateError> for AgentError
impl From<ParseCandidateError> for AgentError
Source§fn from(e: ParseCandidateError) -> Self
fn from(e: ParseCandidateError) -> Self
Converts to this type from the input type.
Source§impl From<StunError> for AgentError
impl From<StunError> for AgentError
Source§impl From<StunParseError> for AgentError
impl From<StunParseError> for AgentError
Source§fn from(_e: StunParseError) -> Self
fn from(_e: StunParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentError
impl RefUnwindSafe for AgentError
impl Send for AgentError
impl Sync for AgentError
impl Unpin for AgentError
impl UnsafeUnpin for AgentError
impl UnwindSafe for AgentError
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