Enum maxwell_protocol::protocol::MsgType
source · #[repr(i32)]pub enum MsgType {
Show 37 variants
Unknown = 0,
PingReq = 1,
PingRep = 2,
OkRep = 29,
ErrorRep = 30,
Ok2Rep = 31,
Error2Rep = 32,
PushReq = 33,
PushRep = 34,
PullReq = 35,
PullRep = 36,
ReqReq = 39,
ReqRep = 40,
AuthReq = 41,
AuthRep = 42,
RegisterFrontendReq = 65,
RegisterFrontendRep = 66,
RegisterBackendReq = 67,
RegisterBackendRep = 68,
RegisterServiceReq = 69,
RegisterServiceRep = 70,
SetRoutesReq = 71,
SetRoutesRep = 72,
GetRoutesReq = 75,
GetRoutesRep = 76,
GetTopicDistChecksumReq = 77,
GetTopicDistChecksumRep = 78,
GetRouteDistChecksumReq = 79,
GetRouteDistChecksumRep = 80,
PickFrontendReq = 81,
PickFrontendRep = 82,
PickFrontendsReq = 83,
PickFrontendsRep = 84,
LocateTopicReq = 85,
LocateTopicRep = 86,
ResolveIpReq = 121,
ResolveIpRep = 122,
}Expand description
unused, placeholder for some impls
Variants§
Unknown = 0
PingReq = 1
PingRep = 2
OkRep = 29
ErrorRep = 30
Ok2Rep = 31
Error2Rep = 32
PushReq = 33
PushRep = 34
PullReq = 35
PullRep = 36
ReqReq = 39
ReqRep = 40
AuthReq = 41
AuthRep = 42
RegisterFrontendReq = 65
RegisterFrontendRep = 66
RegisterBackendReq = 67
RegisterBackendRep = 68
RegisterServiceReq = 69
RegisterServiceRep = 70
SetRoutesReq = 71
SetRoutesRep = 72
GetRoutesReq = 75
GetRoutesRep = 76
GetTopicDistChecksumReq = 77
GetTopicDistChecksumRep = 78
GetRouteDistChecksumReq = 79
GetRouteDistChecksumRep = 80
PickFrontendReq = 81
PickFrontendRep = 82
PickFrontendsReq = 83
PickFrontendsRep = 84
LocateTopicReq = 85
LocateTopicRep = 86
ResolveIpReq = 121
ResolveIpRep = 122
Implementations§
source§impl MsgType
impl MsgType
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<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for MsgType
impl Ord for MsgType
source§impl PartialOrd for MsgType
impl PartialOrd for MsgType
impl Copy for MsgType
impl Eq for MsgType
impl StructuralPartialEq for MsgType
Auto Trait Implementations§
impl Freeze for MsgType
impl RefUnwindSafe for MsgType
impl Send for MsgType
impl Sync for MsgType
impl Unpin for MsgType
impl UnwindSafe for MsgType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)