Enum chamomile::transports::EndpointMessage
source · pub enum EndpointMessage {
Close,
Handshake(RemotePublic),
DHT(DHT),
Hole(Hole),
HoleConnect,
Data(Vec<u8>),
RelayHandshake(RemotePublic, PeerId),
RelayData(PeerId, PeerId, Vec<u8>),
}
Expand description
Session Endpoint Message. bytes[0] is type, bytes[1..] is data.
Variants§
Close
type is 0u8.
Handshake(RemotePublic)
type is 1u8.
DHT(DHT)
type is 2u8.
Hole(Hole)
type is 3u8.
HoleConnect
type is 4u8.
Data(Vec<u8>)
type is 5u8. encrypted’s CoreData.
RelayHandshake(RemotePublic, PeerId)
type is 6u8. Relay Handshake.
RelayData(PeerId, PeerId, Vec<u8>)
type is 7u8. encrypted’s CoreData.
Implementations§
Auto Trait Implementations§
impl Freeze for EndpointMessage
impl RefUnwindSafe for EndpointMessage
impl Send for EndpointMessage
impl Sync for EndpointMessage
impl Unpin for EndpointMessage
impl UnwindSafe for EndpointMessage
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