Struct wick_packet::WickMetadata
source · pub struct WickMetadata { /* private fields */ }
Implementations§
source§impl WickMetadata
impl WickMetadata
pub fn new(port: impl AsRef<str>, flags: u8) -> Self
pub fn flags(&self) -> u8
pub fn port(&self) -> &str
pub fn is_done(&self) -> bool
pub fn is_open_bracket(&self) -> bool
pub fn is_close_bracket(&self) -> bool
pub fn decode(bytes: Bytes) -> Result<Self, Error>
pub fn encode(self) -> Bytes
Trait Implementations§
source§impl Clone for WickMetadata
impl Clone for WickMetadata
source§fn clone(&self) -> WickMetadata
fn clone(&self) -> WickMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WickMetadata
impl Debug for WickMetadata
source§impl Default for WickMetadata
impl Default for WickMetadata
source§impl<'de> Deserialize<'de> for WickMetadata
impl<'de> Deserialize<'de> for WickMetadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<WickMetadata> for WickMetadata
impl PartialEq<WickMetadata> for WickMetadata
source§fn eq(&self, other: &WickMetadata) -> bool
fn eq(&self, other: &WickMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.