Struct cdp::CdpIncoming
[−]
[src]
pub struct CdpIncoming<'a> {
pub id: u64,
pub command_name: Cow<'a, str>,
pub command_params: CdpParams,
}Fields
id: u64
command_name: Cow<'a, str>
command_params: CdpParams
Methods
impl<'a> CdpIncoming<'a>[src]
pub fn parse<'de, D>(
deserializer: D
) -> Result<Self, (CdpError<'static>, Option<u64>)> where
D: Deserializer<'de>, [src]
deserializer: D
) -> Result<Self, (CdpError<'static>, Option<u64>)> where
D: Deserializer<'de>,
pub fn parse_from_reader<T>(
reader: T
) -> Result<Self, (CdpError<'static>, Option<u64>)> where
T: Read, [src]
reader: T
) -> Result<Self, (CdpError<'static>, Option<u64>)> where
T: Read,
pub fn parse_from_str(
src: &str
) -> Result<Self, (CdpError<'static>, Option<u64>)>[src]
src: &str
) -> Result<Self, (CdpError<'static>, Option<u64>)>
pub fn parse_from_slice(
src: &[u8]
) -> Result<Self, (CdpError<'static>, Option<u64>)>[src]
src: &[u8]
) -> Result<Self, (CdpError<'static>, Option<u64>)>
pub fn serialize_command<S, C>(
serializer: S,
id: u64,
command: &C
) -> Result<S::Ok, S::Error> where
S: Serializer,
C: SerializeCdpCommand, [src]
serializer: S,
id: u64,
command: &C
) -> Result<S::Ok, S::Error> where
S: Serializer,
C: SerializeCdpCommand,
pub fn serialize_command_to_writer<W, C>(
writer: W,
id: u64,
command: &C
) -> Result<(), Error> where
W: Write,
C: SerializeCdpCommand, [src]
writer: W,
id: u64,
command: &C
) -> Result<(), Error> where
W: Write,
C: SerializeCdpCommand,
pub fn serialize_command_to_string<C>(
string: &mut String,
id: u64,
command: &C
) -> Result<(), Error> where
C: SerializeCdpCommand, [src]
string: &mut String,
id: u64,
command: &C
) -> Result<(), Error> where
C: SerializeCdpCommand,
Trait Implementations
impl<'a> Clone for CdpIncoming<'a>[src]
fn clone(&self) -> CdpIncoming<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> Debug for CdpIncoming<'a>[src]
impl<'a> PartialEq for CdpIncoming<'a>[src]
fn eq(&self, __arg_0: &CdpIncoming<'a>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CdpIncoming<'a>) -> bool[src]
This method tests for !=.