pub enum TransportSendMessage {
Connect(SocketAddr, RemotePublic, SessionKey),
StableConnect(Sender<EndpointMessage>, Receiver<EndpointMessage>, SocketAddr, RemotePublic),
Stop,
}
Expand description
Endpoint can receied this message channel.
Variants§
Connect(SocketAddr, RemotePublic, SessionKey)
connect to a socket address.
params is socket_addr
, remote_pk bytes
.
StableConnect(Sender<EndpointMessage>, Receiver<EndpointMessage>, SocketAddr, RemotePublic)
params is delivery_id
, socket_addr
, remote_pk bytes
.
Stop
Auto Trait Implementations§
impl Freeze for TransportSendMessage
impl !RefUnwindSafe for TransportSendMessage
impl Send for TransportSendMessage
impl Sync for TransportSendMessage
impl Unpin for TransportSendMessage
impl !UnwindSafe for TransportSendMessage
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