polhemus_viper 0.1.0

A Rust library for the Polhemus Viper electromagnetic tracking system.
Documentation
��cargo :     Checking polhemus_viper v0.1.0 

(C:\Users\Yevgeniy\RustroverProjects\polhemus_viper)

In Zeile:1 Zeichen:1

+ cargo check > build_errors.txt 2>&1

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (    Checking po...polhemus_viper) 

   :String) [], RemoteException

    + FullyQualifiedErrorId : NativeCommandError

 

error[E0425]: cannot find value `guard` in this scope

   --> src\sensor.rs:142:42

    |

142 |                         match read_frame(guard.0, config) {

    |                                          ^^^^^ not found in this scope



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

  --> src\internal\frame.rs:70:96

   |

70 | pub fn send_frame(port: &mut Box<dyn SerialPort>, frame_type: FrameType, 

frame_body: &[u8]) -> io::Result<()> {

   |                                                                           

                     ^^ use of unresolved module or unlinked crate `io`

   |

   = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: a builtin type with a similar name exists

   |

70 - pub fn send_frame(port: &mut Box<dyn SerialPort>, frame_type: FrameType, 

frame_body: &[u8]) -> io::Result<()> {

70 + pub fn send_frame(port: &mut Box<dyn SerialPort>, frame_type: FrameType, 

frame_body: &[u8]) -> i8::Result<()> {

   |

help: consider importing this module

   |

 1 + use std::io;

   |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

  --> src\internal\frame.rs:95:99

   |

95 | pub fn read_frame(port: &mut Box<dyn SerialPort>, command_configuration: 

CommandConfiguration) -> io::Result<(i64, Frame)> {

   |                                                                           

                        ^^ use of unresolved module or unlinked crate `io`

   |

   = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: a builtin type with a similar name exists

   |

95 - pub fn read_frame(port: &mut Box<dyn SerialPort>, command_configuration: 

CommandConfiguration) -> io::Result<(i64, Frame)> {

95 + pub fn read_frame(port: &mut Box<dyn SerialPort>, command_configuration: 

CommandConfiguration) -> i8::Result<(i64, Frame)> {

   |

help: consider importing this module

   |

 1 + use std::io;

   |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

   --> src\internal\frame.rs:128:24

    |

128 |             return Err(io::Error::new(io::ErrorKind::InvalidData, "Too 

many bytes skipped during synchronization"));

    |                        ^^ use of unresolved module or unlinked crate `io`

    |

    = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: consider importing one of these items

    |

  1 + use crate::internal::frame::fmt::Error;

    |

  1 + use std::error::Error;

    |

  1 + use std::fmt::Error;

    |

  1 + use std::io::Error;

    |

    = and 4 other candidates

help: if you import `Error`, refer to it directly

    |

128 -             return Err(io::Error::new(io::ErrorKind::InvalidData, "Too 

many bytes skipped during synchronization"));

128 +             return Err(Error::new(io::ErrorKind::InvalidData, "Too many 

bytes skipped during synchronization"));

    |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

   --> src\internal\frame.rs:128:39

    |

128 |             return Err(io::Error::new(io::ErrorKind::InvalidData, "Too 

many bytes skipped during synchronization"));

    |                                       ^^ use of unresolved module or 

unlinked crate `io`

    |

    = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: consider importing one of these enums

    |

  1 + use std::io::ErrorKind;

    |

  1 + use serialport::ErrorKind;

    |

help: if you import `ErrorKind`, refer to it directly

    |

128 -             return Err(io::Error::new(io::ErrorKind::InvalidData, "Too 

many bytes skipped during synchronization"));

128 +             return Err(io::Error::new(ErrorKind::InvalidData, "Too many 

bytes skipped during synchronization"));

    |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

   --> src\internal\frame.rs:143:24

    |

143 |             return Err(io::Error::new(io::ErrorKind::InvalidData, 

"Unknown frame type"));

    |                        ^^ use of unresolved module or unlinked crate `io`

    |

    = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: consider importing one of these items

    |

  1 + use crate::internal::frame::fmt::Error;

    |

  1 + use std::error::Error;

    |

  1 + use std::fmt::Error;

    |

  1 + use std::io::Error;

    |

    = and 4 other candidates

help: if you import `Error`, refer to it directly

    |

143 -             return Err(io::Error::new(io::ErrorKind::InvalidData, 

"Unknown frame type"));

143 +             return Err(Error::new(io::ErrorKind::InvalidData, "Unknown 

frame type"));

    |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

   --> src\internal\frame.rs:143:39

    |

143 |             return Err(io::Error::new(io::ErrorKind::InvalidData, 

"Unknown frame type"));

    |                                       ^^ use of unresolved module or 

unlinked crate `io`

    |

    = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: consider importing one of these enums

    |

  1 + use std::io::ErrorKind;

    |

  1 + use serialport::ErrorKind;

    |

help: if you import `ErrorKind`, refer to it directly

    |

143 -             return Err(io::Error::new(io::ErrorKind::InvalidData, 

"Unknown frame type"));

143 +             return Err(io::Error::new(ErrorKind::InvalidData, "Unknown 

frame type"));

    |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

   --> src\internal\frame.rs:154:20

    |

154 |         return Err(io::Error::new(io::ErrorKind::InvalidData, "Frame 

size is smaller than 4 bytes!"));

    |                    ^^ use of unresolved module or unlinked crate `io`

    |

    = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: consider importing one of these items

    |

  1 + use crate::internal::frame::fmt::Error;

    |

  1 + use std::error::Error;

    |

  1 + use std::fmt::Error;

    |

  1 + use std::io::Error;

    |

    = and 4 other candidates

help: if you import `Error`, refer to it directly

    |

154 -         return Err(io::Error::new(io::ErrorKind::InvalidData, "Frame 

size is smaller than 4 bytes!"));

154 +         return Err(Error::new(io::ErrorKind::InvalidData, "Frame size is 

smaller than 4 bytes!"));

    |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

   --> src\internal\frame.rs:154:35

    |

154 |         return Err(io::Error::new(io::ErrorKind::InvalidData, "Frame 

size is smaller than 4 bytes!"));

    |                                   ^^ use of unresolved module or 

unlinked crate `io`

    |

    = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: consider importing one of these enums

    |

  1 + use std::io::ErrorKind;

    |

  1 + use serialport::ErrorKind;

    |

help: if you import `ErrorKind`, refer to it directly

    |

154 -         return Err(io::Error::new(io::ErrorKind::InvalidData, "Frame 

size is smaller than 4 bytes!"));

154 +         return Err(io::Error::new(ErrorKind::InvalidData, "Frame size is 

smaller than 4 bytes!"));

    |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

   --> src\internal\frame.rs:175:20

    |

175 |         return Err(io::Error::new(io::ErrorKind::InvalidData, "CRC 

error!"));

    |                    ^^ use of unresolved module or unlinked crate `io`

    |

    = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: consider importing one of these items

    |

  1 + use crate::internal::frame::fmt::Error;

    |

  1 + use std::error::Error;

    |

  1 + use std::fmt::Error;

    |

  1 + use std::io::Error;

    |

    = and 4 other candidates

help: if you import `Error`, refer to it directly

    |

175 -         return Err(io::Error::new(io::ErrorKind::InvalidData, "CRC 

error!"));

175 +         return Err(Error::new(io::ErrorKind::InvalidData, "CRC error!"));

    |



error[E0433]: failed to resolve: use of unresolved module or unlinked crate 

`io`

   --> src\internal\frame.rs:175:35

    |

175 |         return Err(io::Error::new(io::ErrorKind::InvalidData, "CRC 

error!"));

    |                                   ^^ use of unresolved module or 

unlinked crate `io`

    |

    = help: if you wanted to use a crate named `io`, use `cargo add io` to add 

it to your `Cargo.toml`

help: consider importing one of these enums

    |

  1 + use std::io::ErrorKind;

    |

  1 + use serialport::ErrorKind;

    |

help: if you import `ErrorKind`, refer to it directly

    |

175 -         return Err(io::Error::new(io::ErrorKind::InvalidData, "CRC 

error!"));

175 +         return Err(io::Error::new(ErrorKind::InvalidData, "CRC error!"));

    |



Some errors have detailed explanations: E0425, E0433.

For more information about an error, try `rustc --explain E0425`.

error: could not compile `polhemus_viper` (lib) due to 11 previous errors