Enum dap_reactor::protocol::ProtocolMessage
source · [−]pub enum ProtocolMessage {
Request(ProtocolRequest),
Response(ProtocolResponse),
Event(ProtocolEvent),
}
Variants
Request(ProtocolRequest)
Response(ProtocolResponse)
Event(ProtocolEvent)
Implementations
sourceimpl ProtocolMessage
impl ProtocolMessage
pub fn into_adapter_message(self) -> String
pub fn try_from_json_bytes<B>(bytes: B) -> Result<Self, Error>where
B: AsRef<[u8]>,
pub fn try_from_bytes<B>(bytes: B) -> Result<(usize, Self), Error>where
B: AsRef<[u8]>,
pub fn try_from_reader<R>(reader: R) -> Result<(usize, Self)>where
R: Read,
Trait Implementations
sourceimpl Clone for ProtocolMessage
impl Clone for ProtocolMessage
sourcefn clone(&self) -> ProtocolMessage
fn clone(&self) -> ProtocolMessage
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ProtocolMessage
impl Debug for ProtocolMessage
sourceimpl From<ProtocolEvent> for ProtocolMessage
impl From<ProtocolEvent> for ProtocolMessage
sourcefn from(ev: ProtocolEvent) -> Self
fn from(ev: ProtocolEvent) -> Self
Converts to this type from the input type.
sourceimpl From<ProtocolMessage> for Value
impl From<ProtocolMessage> for Value
sourcefn from(m: ProtocolMessage) -> Self
fn from(m: ProtocolMessage) -> Self
Converts to this type from the input type.
sourceimpl From<ProtocolRequest> for ProtocolMessage
impl From<ProtocolRequest> for ProtocolMessage
sourcefn from(r: ProtocolRequest) -> Self
fn from(r: ProtocolRequest) -> Self
Converts to this type from the input type.
sourceimpl From<ProtocolResponse> for ProtocolMessage
impl From<ProtocolResponse> for ProtocolMessage
sourcefn from(r: ProtocolResponse) -> Self
fn from(r: ProtocolResponse) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ProtocolMessage> for ProtocolMessage
impl PartialEq<ProtocolMessage> for ProtocolMessage
sourcefn eq(&self, other: &ProtocolMessage) -> bool
fn eq(&self, other: &ProtocolMessage) -> bool
sourceimpl TryFrom<&Value> for ProtocolMessage
impl TryFrom<&Value> for ProtocolMessage
impl Eq for ProtocolMessage
impl StructuralEq for ProtocolMessage
impl StructuralPartialEq for ProtocolMessage
Auto Trait Implementations
impl RefUnwindSafe for ProtocolMessage
impl Send for ProtocolMessage
impl Sync for ProtocolMessage
impl Unpin for ProtocolMessage
impl UnwindSafe for ProtocolMessage
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