(&self, f: &mut fmt::Formatter)
| 695 | |
| 696 | impl fmt::Display for SyscallError { |
| 697 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 698 | write!(f, "{} : {}", self.0, |
| 699 | match *self { |
| 700 | SYSCALL_ERROR_SEND_BLOCKING => "Send blocking", |
| 701 | SYSCALL_ERROR_RECV_BLOCKING => "Receive blocking", |
| 702 | SYSCALL_ERROR_INVALID_HANDLE => "Invalid handle", |
| 703 | SYSCALL_ERROR_MEMALLOC => "Memory allocation error", |
| 704 | SYSCALL_ERROR_PARAM => "Invalid parameter", |
| 705 | SYSCALL_ERROR_UTF8 => "UTF8 conversion error", |
| 706 | SYSCALL_ERROR_NOTFOUND => "Not found", |
| 707 | SYSCALL_ERROR_THREAD => "Thread error", |
| 708 | SYSCALL_ERROR_MEMORY => "Memory error", |
| 709 | SYSCALL_ERROR_DOUBLEFREE => "Double free", |
| 710 | SYSCALL_ERROR_NOMEMSLOTS => "No memory slots", |
| 711 | SYSCALL_ERROR_CLOSED => "Rendezvous closed", |
| 712 | SYSCALL_ERROR_EXISTS => "Already exists", |
| 713 | SYSCALL_ERROR_NOT_IMPLEMENTED => "Not implemented", |
| 714 | SYSCALL_ERROR_NOT_DIR => "Not a directory", |
| 715 | SYSCALL_ERROR_NO_DATA => "No data", |
| 716 | _ => "Unknown error" |
| 717 | }) |
| 718 | } |
| 719 | } |
| 720 |
nothing calls this directly
no outgoing calls
no test coverage detected