A discriminated union that encapsulates the result of a BLE operation.
Creates a failed BleResult containing the given error.
Creates a successful BleResult containing the given data.
Wraps the execution of block in a BleResult.
Combines two BleResult instances into a single result containing a Pair.