pub enum MessageType {
InitiatorNego,
AcceptorNego,
InitiatorMetaData,
AcceptorMetaData,
Challenge,
ApRequest,
Verify,
Alert,
}Expand description
enum
{
MESSAGE_TYPE_INITIATOR_NEGO = 0,
MESSAGE_TYPE_ACCEPTOR_NEGO,
MESSAGE_TYPE_INITIATOR_META_DATA,
MESSAGE_TYPE_ACCEPTOR_META_DATA,
MESSAGE_TYPE_CHALLENGE,
MESSAGE_TYPE_AP_REQUEST,
MESSAGE_TYPE_VERIFY,
MESSAGE_TYPE_ALERT
} MESSAGE_TYPE;Variants§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate 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 MessageType
impl Debug for MessageType
Source§impl From<&MessageType> for u32
impl From<&MessageType> for u32
Source§fn from(message_type: &MessageType) -> Self
fn from(message_type: &MessageType) -> Self
Converts to this type from the input type.
Source§impl NegoexDataType for MessageType
impl NegoexDataType for MessageType
type Error = Error
fn size(&self) -> usize
Source§fn decode(from: impl Read, _message: &[u8]) -> Result<Self, Self::Error>
fn decode(from: impl Read, _message: &[u8]) -> Result<Self, Self::Error>
Decodes Self from the provided sources.
message - the initial message buffer.fn encode_with_payload( &self, _offset: usize, to: impl Write, _data: impl Write, ) -> Result<usize, Self::Error>
fn encode(&self, to: impl Write) -> Result<(), Self::Error>
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl TryFrom<u32> for MessageType
impl TryFrom<u32> for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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