pub enum ErrorType {
Unexpected,
Disconnected,
}
Expand description
Error types when receiving an error on one of the PacketManager
APIs
Variants§
Unexpected
This was an unexpected error and should be treated as such
Disconnected
The stream or connection was disconnected. The PacketManager
would have cleaned up the connection so
subsequent calls should not run into this again for the same address. Depending on the application, this may
be perfectly normal/expected, or an error.
Trait Implementations§
source§impl PartialEq<ErrorType> for ErrorType
impl PartialEq<ErrorType> for ErrorType
impl Copy for ErrorType
impl Eq for ErrorType
impl StructuralEq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.