Enum ssdp::FieldMap
[−]
[src]
pub enum FieldMap { UPnP(Vec<u8>), UUID(Vec<u8>), URN(Vec<u8>), Unknown(Vec<u8>, Vec<u8>), }
Enumerates key value pairs embedded within SSDP header fields.
Variants
UPnP(Vec<u8>)
The "upnp" key with its associated value.
UUID(Vec<u8>)
The "uuid" key with its associated value.
URN(Vec<u8>)
The "urn" key with its associated value.
Unknown(Vec<u8>, Vec<u8>)
An undefined key, the key and it's value are returned.
Methods
impl FieldMap
[src]
fn new(field: &[u8]) -> Option<FieldMap>
Breaks a field up into a single key and single value which are separated by a colon and neither of which are empty.
Separation will occur at the first colon encountered.
Trait Implementations
impl Debug for FieldMap
[src]
impl Hash for FieldMap
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for FieldMap
[src]
impl PartialEq for FieldMap
[src]
fn eq(&self, __arg_0: &FieldMap) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FieldMap) -> bool
This method tests for !=
.
impl Clone for FieldMap
[src]
fn clone(&self) -> FieldMap
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more