#[non_exhaustive]pub enum SetupRoleError {
UnresolvedOffer(Setup),
MissingAnswer,
UnresolvedAnswer(Setup),
UnsupportedLocalRole(Setup),
NoAnswerRole,
}Expand description
A DTLS setup exchange that cannot select a local handshake role.
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.
UnresolvedOffer(Setup)
An offer selected no role with which a DTLS-SRTP handshake can be formed.
MissingAnswer
The answer omitted the role the offerer needs to act on.
UnresolvedAnswer(Setup)
An answer did not resolve the offer into one endpoint role.
UnsupportedLocalRole(Setup)
The peer’s answer requires a role this local implementation cannot hold.
NoAnswerRole
The answerer supports neither role available to an actpass offer.
Trait Implementations§
Source§impl Clone for SetupRoleError
impl Clone for SetupRoleError
Source§fn clone(&self) -> SetupRoleError
fn clone(&self) -> SetupRoleError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetupRoleError
impl Debug for SetupRoleError
Source§impl Display for SetupRoleError
impl Display for SetupRoleError
Source§impl Error for SetupRoleError
impl Error for SetupRoleError
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 PartialEq for SetupRoleError
impl PartialEq for SetupRoleError
Source§fn eq(&self, other: &SetupRoleError) -> bool
fn eq(&self, other: &SetupRoleError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SetupRoleError
impl Eq for SetupRoleError
impl StructuralPartialEq for SetupRoleError
Auto Trait Implementations§
impl Freeze for SetupRoleError
impl RefUnwindSafe for SetupRoleError
impl Send for SetupRoleError
impl Sync for SetupRoleError
impl Unpin for SetupRoleError
impl UnsafeUnpin for SetupRoleError
impl UnwindSafe for SetupRoleError
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