pub enum ProtocolError {
Show 20 variants
TextPayloadRequiresBinaryDaveMlsCommand,
UdpDiscoveryPacketTooShort {
len: usize,
min_len: usize,
},
UnexpectedUdpDiscoveryPacketType {
packet_type: u16,
expected_packet_type: u16,
},
UnexpectedUdpDiscoveryPacketLen {
packet_len: u16,
expected_packet_len: u16,
},
InvalidUdpDiscoveryIp(Utf8Error),
ReadyMissingEncryptionModes,
RequiredEncryptionModeUnavailable {
required_mode: EncryptionMode,
modes: Vec<OfferedEncryptionMode>,
},
ReadyMissingSupportedEncryptionMode {
modes: Vec<OfferedEncryptionMode>,
},
ResolveWebSocketEndpoint {
host: String,
port: u16,
source: Error,
},
WebSocketEndpointNoAddresses {
host: String,
port: u16,
},
WebSocketAddressConnectTimeout {
address: SocketAddr,
duration: Duration,
},
WebSocketAllAddressesFailed {
host: String,
port: u16,
address_count: usize,
errors: Vec<String>,
},
TcpConnect {
address: SocketAddr,
source: Error,
},
WebSocketUrlMissingHost,
WebSocketUrlMissingUsableScheme,
InvalidDiscordVoiceUdpIp {
remote_ip: String,
source: AddrParseError,
},
HeartbeatAckTimeout,
MissingSessionDescription,
MediaCodecNotNegotiated {
codec: Codec,
negotiated_codec: Option<Codec>,
},
MissingVideoSsrc {
codec: Codec,
},
}Variants§
TextPayloadRequiresBinaryDaveMlsCommand
UdpDiscoveryPacketTooShort
UnexpectedUdpDiscoveryPacketType
UnexpectedUdpDiscoveryPacketLen
InvalidUdpDiscoveryIp(Utf8Error)
ReadyMissingEncryptionModes
ReadyMissingSupportedEncryptionMode
Fields
§
modes: Vec<OfferedEncryptionMode>ResolveWebSocketEndpoint
WebSocketEndpointNoAddresses
WebSocketAddressConnectTimeout
WebSocketAllAddressesFailed
TcpConnect
WebSocketUrlMissingHost
WebSocketUrlMissingUsableScheme
InvalidDiscordVoiceUdpIp
HeartbeatAckTimeout
MissingSessionDescription
MediaCodecNotNegotiated
MissingVideoSsrc
Trait Implementations§
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Source§impl Display for ProtocolError
impl Display for ProtocolError
Source§impl Error for ProtocolError
impl Error for ProtocolError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ProtocolError
impl !UnwindSafe for ProtocolError
impl Freeze for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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