pub enum RaknetClientError {
Io {
message: String,
},
InvalidConfig {
details: String,
},
HandshakeTimeout {
stage: HandshakeStage,
},
OfflineRejected {
reason: OfflineRejectionReason,
},
HandshakeProtocolViolation {
details: String,
},
Closed {
reason: ClientDisconnectReason,
},
BackpressureDropped,
BackpressureDeferred,
BackpressureDisconnect,
}Expand description
Errors returned by client connect/send/receive operations.
Variants§
Io
InvalidConfig
HandshakeTimeout
Fields
§
stage: HandshakeStageOfflineRejected
Fields
§
reason: OfflineRejectionReasonHandshakeProtocolViolation
Closed
Fields
§
reason: ClientDisconnectReasonBackpressureDropped
BackpressureDeferred
BackpressureDisconnect
Trait Implementations§
Source§impl Clone for RaknetClientError
impl Clone for RaknetClientError
Source§fn clone(&self) -> RaknetClientError
fn clone(&self) -> RaknetClientError
Returns a duplicate of the value. Read more
1.0.0 · 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 RaknetClientError
impl Debug for RaknetClientError
Source§impl Display for RaknetClientError
impl Display for RaknetClientError
Source§impl Error for RaknetClientError
impl Error for RaknetClientError
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<Error> for RaknetClientError
impl From<Error> for RaknetClientError
Source§impl From<RaknetClientError> for Error
impl From<RaknetClientError> for Error
Source§fn from(value: RaknetClientError) -> Self
fn from(value: RaknetClientError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RaknetClientError
impl PartialEq for RaknetClientError
impl Eq for RaknetClientError
impl StructuralPartialEq for RaknetClientError
Auto Trait Implementations§
impl Freeze for RaknetClientError
impl RefUnwindSafe for RaknetClientError
impl Send for RaknetClientError
impl Sync for RaknetClientError
impl Unpin for RaknetClientError
impl UnsafeUnpin for RaknetClientError
impl UnwindSafe for RaknetClientError
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