[−]Struct mongodb::wire_protocol::flags::OpQueryFlags
Represents the bit vector of flags for an OP_QUERY message.
Methods
impl OpQueryFlags
impl OpQueryFlags
pub const TAILABLE_CURSOR: OpQueryFlags
pub const SLAVE_OK: OpQueryFlags
pub const OPLOG_RELAY: OpQueryFlags
pub const NO_CURSOR_TIMEOUT: OpQueryFlags
pub const AWAIT_DATA: OpQueryFlags
pub const EXHAUST: OpQueryFlags
pub const PARTIAL: OpQueryFlags
pub fn empty() -> OpQueryFlags
pub fn empty() -> OpQueryFlags
Returns an empty set of flags.
pub fn all() -> OpQueryFlags
pub fn all() -> OpQueryFlags
Returns the set containing all flags.
pub fn bits(&self) -> i32
pub fn bits(&self) -> i32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: i32) -> Option<OpQueryFlags>
pub fn from_bits(bits: i32) -> Option<OpQueryFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: i32) -> OpQueryFlags
pub fn from_bits_truncate(bits: i32) -> OpQueryFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: OpQueryFlags) -> bool
pub fn intersects(&self, other: OpQueryFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: OpQueryFlags) -> bool
pub fn contains(&self, other: OpQueryFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: OpQueryFlags)
pub fn insert(&mut self, other: OpQueryFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: OpQueryFlags)
pub fn remove(&mut self, other: OpQueryFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: OpQueryFlags)
pub fn toggle(&mut self, other: OpQueryFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: OpQueryFlags, value: bool)
pub fn set(&mut self, other: OpQueryFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
impl OpQueryFlags
[src]
impl OpQueryFlags
pub fn with_find_options(options: &FindOptions) -> OpQueryFlags
[src]
pub fn with_find_options(options: &FindOptions) -> OpQueryFlags
Constructs a new struct with flags based on a FindOptions struct.
Arguments
options - Struct whose fields contain the flags to initialize the new OpQueryFlags with
Return value
Returns the newly created OpQueryFlags struct.
Trait Implementations
impl Clone for OpQueryFlags
impl Clone for OpQueryFlags
fn clone(&self) -> OpQueryFlags
fn clone(&self) -> OpQueryFlags
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Extend<OpQueryFlags> for OpQueryFlags
impl Extend<OpQueryFlags> for OpQueryFlags
fn extend<T: IntoIterator<Item = OpQueryFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = OpQueryFlags>>(&mut self, iterator: T)
impl Copy for OpQueryFlags
impl Copy for OpQueryFlags
impl Eq for OpQueryFlags
impl Eq for OpQueryFlags
impl PartialOrd<OpQueryFlags> for OpQueryFlags
impl PartialOrd<OpQueryFlags> for OpQueryFlags
fn partial_cmp(&self, other: &OpQueryFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &OpQueryFlags) -> Option<Ordering>
fn lt(&self, other: &OpQueryFlags) -> bool
fn lt(&self, other: &OpQueryFlags) -> bool
fn le(&self, other: &OpQueryFlags) -> bool
fn le(&self, other: &OpQueryFlags) -> bool
fn gt(&self, other: &OpQueryFlags) -> bool
fn gt(&self, other: &OpQueryFlags) -> bool
fn ge(&self, other: &OpQueryFlags) -> bool
fn ge(&self, other: &OpQueryFlags) -> bool
impl PartialEq<OpQueryFlags> for OpQueryFlags
impl PartialEq<OpQueryFlags> for OpQueryFlags
fn eq(&self, other: &OpQueryFlags) -> bool
fn eq(&self, other: &OpQueryFlags) -> bool
fn ne(&self, other: &OpQueryFlags) -> bool
fn ne(&self, other: &OpQueryFlags) -> bool
impl Ord for OpQueryFlags
impl Ord for OpQueryFlags
fn cmp(&self, other: &OpQueryFlags) -> Ordering
fn cmp(&self, other: &OpQueryFlags) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
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
Compares and returns the minimum of two values. Read more
impl Debug for OpQueryFlags
impl Debug for OpQueryFlags
impl Sub<OpQueryFlags> for OpQueryFlags
impl Sub<OpQueryFlags> for OpQueryFlags
type Output = OpQueryFlags
The resulting type after applying the -
operator.
fn sub(self, other: OpQueryFlags) -> OpQueryFlags
fn sub(self, other: OpQueryFlags) -> OpQueryFlags
Returns the set difference of the two sets of flags.
impl SubAssign<OpQueryFlags> for OpQueryFlags
impl SubAssign<OpQueryFlags> for OpQueryFlags
fn sub_assign(&mut self, other: OpQueryFlags)
fn sub_assign(&mut self, other: OpQueryFlags)
Disables all flags enabled in the set.
impl Not for OpQueryFlags
impl Not for OpQueryFlags
type Output = OpQueryFlags
The resulting type after applying the !
operator.
fn not(self) -> OpQueryFlags
fn not(self) -> OpQueryFlags
Returns the complement of this set of flags.
impl BitAnd<OpQueryFlags> for OpQueryFlags
impl BitAnd<OpQueryFlags> for OpQueryFlags
type Output = OpQueryFlags
The resulting type after applying the &
operator.
fn bitand(self, other: OpQueryFlags) -> OpQueryFlags
fn bitand(self, other: OpQueryFlags) -> OpQueryFlags
Returns the intersection between the two sets of flags.
impl BitOr<OpQueryFlags> for OpQueryFlags
impl BitOr<OpQueryFlags> for OpQueryFlags
type Output = OpQueryFlags
The resulting type after applying the |
operator.
fn bitor(self, other: OpQueryFlags) -> OpQueryFlags
fn bitor(self, other: OpQueryFlags) -> OpQueryFlags
Returns the union of the two sets of flags.
impl BitXor<OpQueryFlags> for OpQueryFlags
impl BitXor<OpQueryFlags> for OpQueryFlags
type Output = OpQueryFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: OpQueryFlags) -> OpQueryFlags
fn bitxor(self, other: OpQueryFlags) -> OpQueryFlags
Returns the left flags, but with all the right flags toggled.
impl BitAndAssign<OpQueryFlags> for OpQueryFlags
impl BitAndAssign<OpQueryFlags> for OpQueryFlags
fn bitand_assign(&mut self, other: OpQueryFlags)
fn bitand_assign(&mut self, other: OpQueryFlags)
Disables all flags disabled in the set.
impl BitOrAssign<OpQueryFlags> for OpQueryFlags
impl BitOrAssign<OpQueryFlags> for OpQueryFlags
fn bitor_assign(&mut self, other: OpQueryFlags)
fn bitor_assign(&mut self, other: OpQueryFlags)
Adds the set of flags.
impl BitXorAssign<OpQueryFlags> for OpQueryFlags
impl BitXorAssign<OpQueryFlags> for OpQueryFlags
fn bitxor_assign(&mut self, other: OpQueryFlags)
fn bitxor_assign(&mut self, other: OpQueryFlags)
Toggles the set of flags.
impl Hash for OpQueryFlags
impl Hash for OpQueryFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromIterator<OpQueryFlags> for OpQueryFlags
impl FromIterator<OpQueryFlags> for OpQueryFlags
fn from_iter<T: IntoIterator<Item = OpQueryFlags>>(iterator: T) -> OpQueryFlags
fn from_iter<T: IntoIterator<Item = OpQueryFlags>>(iterator: T) -> OpQueryFlags
impl Octal for OpQueryFlags
impl Octal for OpQueryFlags
impl Binary for OpQueryFlags
impl Binary for OpQueryFlags
impl LowerHex for OpQueryFlags
impl LowerHex for OpQueryFlags
impl UpperHex for OpQueryFlags
impl UpperHex for OpQueryFlags
Auto Trait Implementations
impl Send for OpQueryFlags
impl Send for OpQueryFlags
impl Sync for OpQueryFlags
impl Sync for OpQueryFlags
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 = !
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
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