Enum tea_sdk::vmh::message::structs_proto::ipfs::FindingMode
#[repr(i32)]pub enum FindingMode {
AsMuchAsPossible = 0,
FirstComeThenDone = 1,
}
Variants§
Implementations§
§impl FindingMode
impl FindingMode
§impl FindingMode
impl FindingMode
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<FindingMode>
pub fn from_str_name(value: &str) -> Option<FindingMode>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for FindingMode
impl Clone for FindingMode
§fn clone(&self) -> FindingMode
fn clone(&self) -> FindingMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for FindingMode
impl Debug for FindingMode
§impl Default for FindingMode
impl Default for FindingMode
§fn default() -> FindingMode
fn default() -> FindingMode
Returns the “default value” for a type. Read more
§impl Hash for FindingMode
impl Hash for FindingMode
§impl Ord for FindingMode
impl Ord for FindingMode
§impl PartialEq for FindingMode
impl PartialEq for FindingMode
§fn eq(&self, other: &FindingMode) -> bool
fn eq(&self, other: &FindingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for FindingMode
impl PartialOrd for FindingMode
§fn partial_cmp(&self, other: &FindingMode) -> Option<Ordering>
fn partial_cmp(&self, other: &FindingMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FindingMode
impl Eq for FindingMode
impl StructuralEq for FindingMode
impl StructuralPartialEq for FindingMode
Auto Trait Implementations§
impl RefUnwindSafe for FindingMode
impl Send for FindingMode
impl Sync for FindingMode
impl Unpin for FindingMode
impl UnwindSafe for FindingMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.