Struct fast_server::connection_handler::Error
source · pub struct Error {
pub error_type: ConnectionHandlerError,
pub player: Option<Arc<Mutex<Player>>>,
}Expand description
An custom error type that keeps track of the error type and the player that the thread was handling
Fields§
§error_type: ConnectionHandlerErrorType of the error
player: Option<Arc<Mutex<Player>>>instance of the player that the thread handled if one exists
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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