Enum protos::cdisk_spec::ReadWriteCapability
source · pub enum ReadWriteCapability {
READ_ONLY = 0,
READ_WRITE = 1,
}
Variants§
Implementations§
source§impl ReadWriteCapability
impl ReadWriteCapability
fn generated_enum_descriptor_data() -> GeneratedEnumDescriptorData
Trait Implementations§
source§impl Clone for ReadWriteCapability
impl Clone for ReadWriteCapability
source§fn clone(&self) -> ReadWriteCapability
fn clone(&self) -> ReadWriteCapability
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 moresource§impl Debug for ReadWriteCapability
impl Debug for ReadWriteCapability
source§impl Default for ReadWriteCapability
impl Default for ReadWriteCapability
source§impl Enum for ReadWriteCapability
impl Enum for ReadWriteCapability
source§const NAME: &'static str = "ReadWriteCapability"
const NAME: &'static str = "ReadWriteCapability"
Enum name as specified in
.proto
file. Read moresource§fn from_i32(value: i32) -> Option<ReadWriteCapability>
fn from_i32(value: i32) -> Option<ReadWriteCapability>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<ReadWriteCapability>
fn from_str(str: &str) -> Option<ReadWriteCapability>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [ReadWriteCapability] = _
const VALUES: &'static [ReadWriteCapability] = _
All enum values for enum type.
source§impl EnumFull for ReadWriteCapability
impl EnumFull for ReadWriteCapability
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for ReadWriteCapability
impl Hash for ReadWriteCapability
source§impl PartialEq for ReadWriteCapability
impl PartialEq for ReadWriteCapability
source§fn eq(&self, other: &ReadWriteCapability) -> bool
fn eq(&self, other: &ReadWriteCapability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ReadWriteCapability
impl Eq for ReadWriteCapability
impl StructuralPartialEq for ReadWriteCapability
Auto Trait Implementations§
impl RefUnwindSafe for ReadWriteCapability
impl Send for ReadWriteCapability
impl Sync for ReadWriteCapability
impl Unpin for ReadWriteCapability
impl UnwindSafe for ReadWriteCapability
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