[−][src]Struct mongodb::coll::error::WriteError
The error struct for a write-related error.
Fields
code: i32
message: String
Methods
impl WriteError
[src]
impl WriteError
pub fn new<T: ToString>(code: i32, message: T) -> WriteError
[src]
pub fn new<T: ToString>(code: i32, message: T) -> WriteError
Returns a new WriteError containing the provided error information.
pub fn parse(error: Document) -> Result<WriteError>
[src]
pub fn parse(error: Document) -> Result<WriteError>
Parses a Bson document into a WriteError.
Trait Implementations
impl Clone for WriteError
[src]
impl Clone for WriteError
fn clone(&self) -> WriteError
[src]
fn clone(&self) -> WriteError
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
impl Eq for WriteError
[src]
impl Eq for WriteError
impl PartialOrd<WriteError> for WriteError
[src]
impl PartialOrd<WriteError> for WriteError
fn partial_cmp(&self, other: &WriteError) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &WriteError) -> Option<Ordering>
fn lt(&self, other: &WriteError) -> bool
[src]
fn lt(&self, other: &WriteError) -> bool
fn le(&self, other: &WriteError) -> bool
[src]
fn le(&self, other: &WriteError) -> bool
fn gt(&self, other: &WriteError) -> bool
[src]
fn gt(&self, other: &WriteError) -> bool
fn ge(&self, other: &WriteError) -> bool
[src]
fn ge(&self, other: &WriteError) -> bool
impl PartialEq<WriteError> for WriteError
[src]
impl PartialEq<WriteError> for WriteError
fn eq(&self, other: &WriteError) -> bool
[src]
fn eq(&self, other: &WriteError) -> bool
fn ne(&self, other: &WriteError) -> bool
[src]
fn ne(&self, other: &WriteError) -> bool
impl Ord for WriteError
[src]
impl Ord for WriteError
fn cmp(&self, other: &WriteError) -> Ordering
[src]
fn cmp(&self, other: &WriteError) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
1.21.0
[src]Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0
[src]Compares and returns the minimum of two values. Read more
impl Debug for WriteError
[src]
impl Debug for WriteError
impl Hash for WriteError
[src]
impl Hash for WriteError
Auto Trait Implementations
impl Send for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Sync for WriteError
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
fn equivalent(&self, key: &K) -> bool
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self