pub trait PacketExt {
// Required methods
fn has_data(&self) -> bool;
fn port(&self) -> &str;
fn flags(&self) -> u8;
// Provided methods
fn is_noop(&self) -> bool { ... }
fn is_fatal_error(&self) -> bool { ... }
fn is_signal(&self) -> bool { ... }
fn is_bracket(&self) -> bool { ... }
fn is_done(&self) -> bool { ... }
fn is_open_bracket(&self) -> bool { ... }
fn is_close_bracket(&self) -> bool { ... }
}
Expand description
Re-export of wick_packet::Base64Bytes as Bytes.
Required Methods§
Provided Methods§
Sourcefn is_fatal_error(&self) -> bool
fn is_fatal_error(&self) -> bool
Return true
if this is a fatal, component wide error packet.
Sourcefn is_signal(&self) -> bool
fn is_signal(&self) -> bool
Returns true if this packet is a signal packet (i.e. done, open_bracket, close_bracket, etc).
Sourcefn is_bracket(&self) -> bool
fn is_bracket(&self) -> bool
Returns true if this packet is a bracket packet (i.e open_bracket, close_bracket, etc).
Sourcefn is_open_bracket(&self) -> bool
fn is_open_bracket(&self) -> bool
Returns true if this packet is an open bracket packet.
Sourcefn is_close_bracket(&self) -> bool
fn is_close_bracket(&self) -> bool
Returns true if this packet is a close bracket packet.