Struct wick_packet::WickMetadata
source · pub struct WickMetadata { /* private fields */ }
Implementations§
source§impl WickMetadata
impl WickMetadata
pub fn new<T: Into<String>>(port: T, flags: u8) -> Self
pub const fn flags(&self) -> u8
pub fn set_context(&mut self, config: Base64Bytes)
pub fn port(&self) -> &str
pub const fn is_done(&self) -> bool
pub const fn is_open_bracket(&self) -> bool
pub const 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 ==
.source§impl Serialize for WickMetadata
impl Serialize for WickMetadata
impl StructuralPartialEq for WickMetadata
Auto Trait Implementations§
impl RefUnwindSafe for WickMetadata
impl Send for WickMetadata
impl Sync for WickMetadata
impl Unpin for WickMetadata
impl UnwindSafe for WickMetadata
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more