Enum magic_wormhole::transfer::PeerMessage
source · #[non_exhaustive]pub enum PeerMessage {
Transit(TransitV1),
Offer(OfferMessage),
Answer(AnswerMessage),
Error(String),
Unknown,
}👎Deprecated since 0.7.0: This will be a private type in the future. Open an issue if you require access to protocol intrinsics in the future
Expand description
The type of message exchanged over the wormhole for this protocol
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transit(TransitV1)
👎Deprecated since 0.7.0: This will be a private type in the future. Open an issue if you require access to protocol intrinsics in the future
A transit message
Offer(OfferMessage)
👎Deprecated since 0.7.0: This will be a private type in the future. Open an issue if you require access to protocol intrinsics in the future
An offer message
Answer(AnswerMessage)
👎Deprecated since 0.7.0: This will be a private type in the future. Open an issue if you require access to protocol intrinsics in the future
An answer message
Error(String)
👎Deprecated since 0.7.0: This will be a private type in the future. Open an issue if you require access to protocol intrinsics in the future
Tell the other side you got an error
Unknown
👎Deprecated since 0.7.0: This will be a private type in the future. Open an issue if you require access to protocol intrinsics in the future
An unknown message
Trait Implementations§
source§impl Clone for PeerMessage
impl Clone for PeerMessage
source§fn clone(&self) -> PeerMessage
fn clone(&self) -> PeerMessage
Returns a copy 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 PeerMessage
impl Debug for PeerMessage
source§impl<'de> Deserialize<'de> for PeerMessage
impl<'de> Deserialize<'de> for PeerMessage
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 Display for PeerMessage
impl Display for PeerMessage
Auto Trait Implementations§
impl Freeze for PeerMessage
impl RefUnwindSafe for PeerMessage
impl Send for PeerMessage
impl Sync for PeerMessage
impl Unpin for PeerMessage
impl UnwindSafe for PeerMessage
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)