0.4.0 - 2024-11-12
- The
backend::Mock
has been added for mocking communication with a Zaber product in unit tests. Create one viaPort::open_mock()
. It is only available if themock
feature is enabled, which is disabled by default. Port::open_serial_options()
andPort::open_tcp_options()
convenience methods for creatingOptionSerialOptions
andOpenTcpOptions
.
-
ascii::Port
methods now mostly returnNotChecked<R>
instead of some response typeR
. TheNotChecked<R>
type wraps a responseR
, which is only accessible by calling one of the type's validation functions. -
ascii::Port
is now parameterized with aTag
type, which has a default value. In the vase majority of cases it can be ignored. See theascii::Port
documentation for more details. -
The
ascii
module now only re-exports thePort
type. All other types are now organized into submodules, some of which have been renamed.ascii::parse
->ascii::packet
- Moved to
ascii::command
moduleascii::Command
ascii::Target
ascii::MaxPacketSize
- Moved to
ascii::port
moduleascii::OpenSerialOptions
ascii::OpenTcpOptions
ascii::Port
(a re-export remains)ascii::Direction
ascii::SendPort
- Moved to
ascii::port::handlers
moduleascii::LocalHandlers
ascii::SendHandlers
ascii::Handlers
ascii::PacketHandler
ascii::SendPacketHandler
ascii::SendUnexpectedAlertHandler
ascii::UnexpectedAlertHandler
- Moved to
ascii::response
moduleascii::check
(module)ascii::Alert
ascii::Info
ascii::Reply
ascii::Warning
ascii::AnyResponse
ascii::Flag
ascii::Kind
ascii::Status
ascii::Response
ascii::ResponseWithFlag
ascii::ResponseWithStatus
ascii::ResponseWithWarning
ascii::SpecificResponse
-
The following items have been moved into the
binary::handlers
modulebinary::LocalHandlers
binary::SendHandlers
binary::Handlers
binary::PacketHandler
binary::SendPacketHandler
- The
ascii::PacketCallback
andascii::UnexpectedAlertCallback
have been removed.
Prior release notes can be found in GitHub Releases.