pub enum ListenerToDialerMessage {
ProtocolAck {
name: Bytes,
},
NotAvailable,
ProtocolsListResponse {
list: Vec<Bytes>,
},
}
Expand description
Message sent from the listener to the dialer.
Variants
ProtocolAck
Fields
name: Bytes
The protocol requested by the dialer is accepted. The socket immediately starts using the new protocol.
NotAvailable
The protocol requested by the dialer is not supported or available.
ProtocolsListResponse
Response to the request for the list of protocols.
Trait Implementations
sourceimpl Clone for ListenerToDialerMessage
impl Clone for ListenerToDialerMessage
sourcefn clone(&self) -> ListenerToDialerMessage
fn clone(&self) -> ListenerToDialerMessage
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 ListenerToDialerMessage
impl Debug for ListenerToDialerMessage
sourceimpl PartialEq<ListenerToDialerMessage> for ListenerToDialerMessage
impl PartialEq<ListenerToDialerMessage> for ListenerToDialerMessage
sourcefn eq(&self, other: &ListenerToDialerMessage) -> bool
fn eq(&self, other: &ListenerToDialerMessage) -> bool
impl Eq for ListenerToDialerMessage
impl StructuralEq for ListenerToDialerMessage
impl StructuralPartialEq for ListenerToDialerMessage
Auto Trait Implementations
impl RefUnwindSafe for ListenerToDialerMessage
impl Send for ListenerToDialerMessage
impl Sync for ListenerToDialerMessage
impl Unpin for ListenerToDialerMessage
impl UnwindSafe for ListenerToDialerMessage
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