Enum fizyr_rpc::MessageType [−][src]
#[repr(u32)] pub enum MessageType { Request, Response, RequesterUpdate, ResponderUpdate, Stream, }
Expand description
The type of a message.
Variants
A message that initiates a request.
A response message that terminates a request.
An update message sent by the peer that initiated the request.
A response message sent by the peer that received the request.
A stream message that is sent outside of the context of a request.
Implementations
impl MessageType
[src]
impl MessageType
[src]pub fn from_u32(value: u32) -> Result<Self, InvalidMessageType>
[src]
pub fn from_u32(value: u32) -> Result<Self, InvalidMessageType>
[src]Try to convert a u32
into a MessageType
pub fn is_request(self) -> bool
[src]
pub fn is_request(self) -> bool
[src]Check if this message type is Self::Request
.
pub fn is_response(self) -> bool
[src]
pub fn is_response(self) -> bool
[src]Check if this message type is Self::Response
.
pub fn is_requester_update(self) -> bool
[src]
pub fn is_requester_update(self) -> bool
[src]Check if this message type is Self::RequesterUpdate
.
pub fn is_responder_update(self) -> bool
[src]
pub fn is_responder_update(self) -> bool
[src]Check if this message type is Self::ResponderUpdate
.
pub fn is_stream(self) -> bool
[src]
pub fn is_stream(self) -> bool
[src]Check if this message type is Self::Stream
.
Trait Implementations
impl Clone for MessageType
[src]
impl Clone for MessageType
[src]fn clone(&self) -> MessageType
[src]
fn clone(&self) -> MessageType
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MessageType
[src]
impl Debug for MessageType
[src]impl Hash for MessageType
[src]
impl Hash for MessageType
[src]impl Ord for MessageType
[src]
impl Ord for MessageType
[src]impl PartialEq<MessageType> for MessageType
[src]
impl PartialEq<MessageType> for MessageType
[src]impl PartialOrd<MessageType> for MessageType
[src]
impl PartialOrd<MessageType> for MessageType
[src]fn partial_cmp(&self, other: &MessageType) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MessageType) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for MessageType
[src]
impl Eq for MessageType
[src]
impl StructuralEq for MessageType
[src]
impl StructuralPartialEq for MessageType
[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more