object ReplSetGetStatusWriter extends BSONDocumentWriter[ReplSetGetStatus.type]
- Alphabetic
- By Inheritance
- ReplSetGetStatusWriter
- BSONDocumentWriter
- BSONWriter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def afterWrite[U <: BSONValue](f: (BSONDocument) => U): BSONWriter[ReplSetGetStatus.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) => ReplSetGetStatus.type): BSONWriter[U, BSONDocument]
- Definition Classes
- BSONWriter
- val bsonCmd: BSONDocument
- def write(command: ReplSetGetStatus.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
- ReplSetGetStatusWriter → BSONWriter
- def writeOpt(t: ReplSetGetStatus.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: ReplSetGetStatus.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