pevensie/drivers
Types
pub type ConnectError(driver_error) {
ConnectDriverError(driver_error)
AlreadyConnected
}
Constructors
-
ConnectDriverError(driver_error)
-
AlreadyConnected
A function that connects the driver. This may set up any connections or perform any other setup required to make the driver ready to use.
pub type ConnectFunction(driver, driver_error) =
fn(driver) -> Result(driver, ConnectError(driver_error))
pub type DisconnectError(driver_error) {
DisconnectDriverError(driver_error)
NotConnected
}
Constructors
-
DisconnectDriverError(driver_error)
-
NotConnected
A function that disconnects the driver. This may tear down any connections or perform any other cleanup required once the driver is no longer needed.
pub type DisconnectFunction(driver, driver_error) =
fn(driver) -> Result(driver, DisconnectError(driver_error))
pub type Disconnected