pub enum NetworkError {
Show 34 variants
ConnectionError(String),
SignalingError(String),
WebRtcError(String),
ProtocolError(String),
SerializationError(String),
DeserializationError(String),
TimeoutError(String),
AuthenticationError(String),
CredentialExpired(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),
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
CredentialExpired(String)
Credential expired error (requires re-registration)
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
Other(Error)
Other error
Implementations§
Trait Implementations§
Source§impl Classify for NetworkError
impl Classify for NetworkError
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
use the Display impl or to_string()
Source§impl From<ActrIdError> for NetworkError
Convert from ActrIdError (identity parsing) to NetworkError
impl From<ActrIdError> for NetworkError
Convert from ActrIdError (identity parsing) to NetworkError
Source§fn from(err: ActrIdError) -> Self
fn from(err: ActrIdError) -> Self
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 ActrError
Convert NetworkError to the public top-level ActrError.
impl From<NetworkError> for ActrError
Convert NetworkError to the public top-level ActrError.
This is the single boundary where transport failures become user-visible errors.
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 !RefUnwindSafe for NetworkError
impl !UnwindSafe for NetworkError
impl Freeze for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl UnsafeUnpin 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 moreimpl<T> MaybeSendSync for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.