pub enum DialerToListenerMessage {
ProtocolRequest {
name: Bytes,
},
ProtocolsListRequest,
}Expand description
Message sent from the dialer to the listener.
Variants
ProtocolRequest
Fields
name: BytesName of the protocol.
The dialer wants us to use a protocol.
If this is accepted (by receiving back a ProtocolAck), then we immediately start
communicating in the new protocol.
ProtocolsListRequest
The dialer requested the list of protocols that the listener supports.
Trait Implementations
sourceimpl Clone for DialerToListenerMessage
impl Clone for DialerToListenerMessage
sourcefn clone(&self) -> DialerToListenerMessage
fn clone(&self) -> DialerToListenerMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DialerToListenerMessage
impl Debug for DialerToListenerMessage
sourceimpl PartialEq<DialerToListenerMessage> for DialerToListenerMessage
impl PartialEq<DialerToListenerMessage> for DialerToListenerMessage
sourcefn eq(&self, other: &DialerToListenerMessage) -> bool
fn eq(&self, other: &DialerToListenerMessage) -> bool
impl Eq for DialerToListenerMessage
impl StructuralEq for DialerToListenerMessage
impl StructuralPartialEq for DialerToListenerMessage
Auto Trait Implementations
impl RefUnwindSafe for DialerToListenerMessage
impl Send for DialerToListenerMessage
impl Sync for DialerToListenerMessage
impl Unpin for DialerToListenerMessage
impl UnwindSafe for DialerToListenerMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more