#[repr(i32)]pub enum CallType {
Unspecified = 0,
Call = 1,
Callcode = 2,
Delegate = 3,
Static = 4,
Create = 5,
}
Variants§
Unspecified = 0
Call = 1
direct? what’s the name for Call
alone?
Callcode = 2
Delegate = 3
Static = 4
Create = 5
create2 ? any other form of calls?
Implementations§
Source§impl CallType
impl CallType
Sourcepub 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.
Sourcepub fn from_str_name(value: &str) -> Option<CallType>
pub fn from_str_name(value: &str) -> Option<CallType>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for CallType
impl Ord for CallType
Source§impl PartialOrd for CallType
impl PartialOrd for CallType
impl Copy for CallType
impl Eq for CallType
impl StructuralPartialEq for CallType
Auto Trait Implementations§
impl Freeze for CallType
impl RefUnwindSafe for CallType
impl Send for CallType
impl Sync for CallType
impl Unpin for CallType
impl UnwindSafe for CallType
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