pub enum PortalMessage {
Connect(ConnectMessage),
KeyExchange(PortalKeyExchange),
Confirm(PortalConfirmation),
EncryptedDataHeader(EncryptedMessage),
}
Expand description
The wrapped message type for every exchanged message
Variants§
Connect(ConnectMessage)
Provide enough information to the relay to pair you with the peer.
KeyExchange(PortalKeyExchange)
SPAKE2 Key Derivation Information
Confirm(PortalConfirmation)
SPAKE2 Key Confirmation Information
EncryptedDataHeader(EncryptedMessage)
All other messages are encrypted. This can be either metadata or a file chunk
Implementations§
Trait Implementations§
Source§impl Clone for PortalMessage
impl Clone for PortalMessage
Source§fn clone(&self) -> PortalMessage
fn clone(&self) -> PortalMessage
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 PortalMessage
impl Debug for PortalMessage
Source§impl<'de> Deserialize<'de> for PortalMessage
impl<'de> Deserialize<'de> for PortalMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PortalMessage
impl PartialEq for PortalMessage
Source§impl Serialize for PortalMessage
impl Serialize for PortalMessage
impl Eq for PortalMessage
impl StructuralPartialEq for PortalMessage
Auto Trait Implementations§
impl Freeze for PortalMessage
impl RefUnwindSafe for PortalMessage
impl Send for PortalMessage
impl Sync for PortalMessage
impl Unpin for PortalMessage
impl UnwindSafe for PortalMessage
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