implicit object PingWriter extends BSONDocumentWriter[PingCommand.type]
- Alphabetic
- By Inheritance
- PingWriter
- BSONDocumentWriter
- BSONWriter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def afterWrite[U <: BSONValue](f: (BSONDocument) => U): BSONWriter[PingCommand.type, U]
Returns a BSON writer that returns the result of applying
f
on the BSON value from this writer.Returns a BSON writer that returns the result of applying
f
on the BSON value from this writer.- f
the function to apply
- Definition Classes
- BSONWriter
- final def beforeWrite[U](f: (U) => PingCommand.type): BSONWriter[U, BSONDocument]
- Definition Classes
- BSONWriter
- val command: BSONDocument
- def write(ping: PingCommand.type): BSONDocument
Writes an instance of
T
as a BSON value.Writes an instance of
T
as a BSON value.This method may throw exceptions at runtime. If used outside a reader, one should consider
writeTry(bson: B): Try[T]
orwriteOpt(bson: B): Option[T]
.- Definition Classes
- PingWriter → BSONWriter
- def writeOpt(t: PingCommand.type): Option[BSONDocument]
Tries to produce a BSON value from an instance of
T
, returnsNone
if an error occurred.Tries to produce a BSON value from an instance of
T
, returnsNone
if an error occurred.- Definition Classes
- BSONWriter
- def writeTry(t: PingCommand.type): Try[BSONDocument]
Tries to produce a BSON value from an instance of
T
.Tries to produce a BSON value from an instance of
T
.- Definition Classes
- BSONWriter