<!-- Source: https://medius.k4tech.net/library/types -->
# Types & errors

_Arguments, results, and errors_

Every public type is re-exported at the crate root: import from `medius::`, not `medius::types::`. The argument [enums](/library/types/enums.md), the [structs](/library/types/structs.md) the box reports back, the low-level [frame types](/library/types/frames.md), and the one [`Error`](/library/types/errors.md) all live here.

#### EXAMPLE

```rust
use medius::{Button, Action, Health, Version, Error, Result};

// One flat namespace. This does NOT work:
// use medius::types::Button;
```

## Reference pages

_Pick a group_

- [Enums](/library/types/enums.md): Button, Action, RebootTarget, LogLevel, CatchEvent
- [Structs](/library/types/structs.md): Version, Health, MouseCaps, KbdCaps, Key, MediaKey, and more
- [Frames](/library/types/frames.md): FrameType, DecodedFrame
- [Errors](/library/types/errors.md): Error, Result
