pub enum NetworkError {
Show 34 variants
ConnectionError(String),
SignalingError(String),
WebRtcError(String),
ProtocolError(String),
SerializationError(String),
DeserializationError(String),
TimeoutError(String),
AuthenticationError(String),
PermissionError(String),
ConfigurationError(String),
ResourceExhaustedError(String),
NetworkUnreachableError(String),
ServiceDiscoveryError(String),
NatTraversalError(String),
DataChannelError(String),
BroadcastError(String),
IceError(String),
DtlsError(String),
StunTurnError(String),
WebSocketError(String),
ConnectionNotFound(String),
ConnectionClosed(String),
NotImplemented(String),
ChannelClosed(String),
SendError(String),
NoRoute(String),
InvalidOperation(String),
InvalidArgument(String),
ChannelNotFound(String),
IoError(Error),
UrlParseError(ParseError),
JsonError(Error),
Timeout(String),
Other(Error),
}Expand description
Network layer error types
Variants§
ConnectionError(String)
Connection error
SignalingError(String)
Signaling error
WebRtcError(String)
WebRTC error
ProtocolError(String)
Protocol error
SerializationError(String)
Serialization error
DeserializationError(String)
Deserialization error
TimeoutError(String)
Timeout error
AuthenticationError(String)
Authentication error
PermissionError(String)
Permission error
ConfigurationError(String)
Configuration error
ResourceExhaustedError(String)
Resource exhausted error
NetworkUnreachableError(String)
Network unreachable error
ServiceDiscoveryError(String)
Service discovery error
NatTraversalError(String)
NAT traversal error
DataChannelError(String)
Data channel error
BroadcastError(String)
Broadcast error
IceError(String)
ICE error
DtlsError(String)
DTLS error
StunTurnError(String)
STUN/TURN error
WebSocketError(String)
WebSocket error
ConnectionNotFound(String)
Connection not found error
ConnectionClosed(String)
Connection closed error (e.g., cancelled during creation)
NotImplemented(String)
Feature not implemented error
ChannelClosed(String)
Channel closed error
SendError(String)
Send error
NoRoute(String)
No route error
InvalidOperation(String)
Invalid operation error
InvalidArgument(String)
Invalid argument error
ChannelNotFound(String)
Channel not found error
IoError(Error)
IO error
UrlParseError(ParseError)
URL parse error
JsonError(Error)
JSON error
Timeout(String)
Timeout error
Other(Error)
Other error
Implementations§
Source§impl NetworkError
impl NetworkError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if error is retryable
Sourcepub fn is_temporary(&self) -> bool
pub fn is_temporary(&self) -> bool
Check if error is temporary
Trait Implementations§
Source§impl Debug for NetworkError
impl Debug for NetworkError
Source§impl Display for NetworkError
impl Display for NetworkError
Source§impl Error for NetworkError
impl Error for NetworkError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ActrError> for NetworkError
Convert from actor error to network error
impl From<ActrError> for NetworkError
Convert from actor error to network error
Source§impl From<DecodeError> for NetworkError
Convert from protobuf decode error
impl From<DecodeError> for NetworkError
Convert from protobuf decode error
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Source§impl From<EncodeError> for NetworkError
Convert from protobuf encode error
impl From<EncodeError> for NetworkError
Convert from protobuf encode error
Source§fn from(err: EncodeError) -> Self
fn from(err: EncodeError) -> Self
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<Error> for NetworkError
Convert from WebRTC error
impl From<Error> for NetworkError
Convert from WebRTC error
Source§impl From<Error> for NetworkError
Convert from WebSocket error
impl From<Error> for NetworkError
Convert from WebSocket error
Source§impl From<NetworkError> for RuntimeError
impl From<NetworkError> for RuntimeError
Source§fn from(err: NetworkError) -> Self
fn from(err: NetworkError) -> Self
Source§impl From<ParseError> for NetworkError
impl From<ParseError> for NetworkError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for NetworkError
impl !RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl !UnwindSafe for NetworkError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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> ⓘ
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> ⓘ
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