Struct mongodb::coll::error::WriteConcernError [−][src]
pub struct WriteConcernError { pub code: i32, pub details: WriteConcern, pub message: String, }
The error struct for a write-concern related error.
Fields
code: i32
details: WriteConcern
message: String
Methods
impl WriteConcernError
[src]
impl WriteConcernError
pub fn new<T: ToString>(
code: i32,
details: WriteConcern,
message: T
) -> WriteConcernError
[src]
pub fn new<T: ToString>(
code: i32,
details: WriteConcern,
message: T
) -> WriteConcernError
Returns a new WriteConcernError containing the provided error information.
pub fn parse(
error: Document,
write_concern: WriteConcern
) -> Result<WriteConcernError>
[src]
pub fn parse(
error: Document,
write_concern: WriteConcern
) -> Result<WriteConcernError>
Parses a Bson document into a WriteConcernError with the provided write concern.
Trait Implementations
impl Debug for WriteConcernError
[src]
impl Debug for WriteConcernError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for WriteConcernError
[src]
impl Clone for WriteConcernError
fn clone(&self) -> WriteConcernError
[src]
fn clone(&self) -> WriteConcernError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for WriteConcernError
impl Send for WriteConcernError
impl Sync for WriteConcernError
impl Sync for WriteConcernError