Results the successful result (only if ok is true).
Returns a BSON reader that returns the result of applying f
on the result of this reader.
Returns a BSON reader that returns the result of applying f
on the result of this reader.
the function to apply
Reads a BSON value and produce an instance of T.
Reads a BSON value and produce an instance of T.
This method may throw exceptions at runtime.
If used outside a reader, one should consider readTry(bson: B): Try[T] or readOpt(bson: B): Option[T].
Tries to produce an instance of T from the bson value, returns None if an error occurred.
Tries to produce an instance of T from the bson value, returns None if an error occurred.
Tries to produce an instance of T from the bson value.
Tries to produce an instance of T from the bson value.
Helper to read a command result, with error handling.