pub struct VPacket<T>where
T: ConditionallySend,{ /* private fields */ }
Expand description
Re-export of wick_packet::Base64Bytes as Bytes.
Implementations§
Source§impl<T> VPacket<T>where
T: ConditionallySend,
impl<T> VPacket<T>where
T: ConditionallySend,
pub fn new(packet: Packet) -> VPacket<T>where
T: DeserializeOwned,
pub fn from_result(packet: Result<Packet, Error>) -> VPacket<T>where
T: DeserializeOwned + ConditionallySend,
pub const fn from_value(value: T) -> VPacket<T>
pub fn decode(self) -> Result<T, Error>where
T: DeserializeOwned + ConditionallySend,
Trait Implementations§
Source§impl<T> From<Result<Packet, Error>> for VPacket<T>where
T: DeserializeOwned + ConditionallySend,
impl<T> From<Result<Packet, Error>> for VPacket<T>where
T: DeserializeOwned + ConditionallySend,
Source§impl<T> PacketExt for VPacket<T>where
T: ConditionallySend,
impl<T> PacketExt for VPacket<T>where
T: ConditionallySend,
Source§fn is_fatal_error(&self) -> bool
fn is_fatal_error(&self) -> bool
Return
true
if this is a fatal, component wide error packet.Source§fn 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).
Source§fn 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).
Source§fn is_open_bracket(&self) -> bool
fn is_open_bracket(&self) -> bool
Returns true if this packet is an open bracket packet.
Source§fn is_close_bracket(&self) -> bool
fn is_close_bracket(&self) -> bool
Returns true if this packet is a close bracket packet.
Auto Trait Implementations§
impl<T> !Freeze for VPacket<T>
impl<T> RefUnwindSafe for VPacket<T>where
T: RefUnwindSafe,
impl<T> Send for VPacket<T>
impl<T> Sync for VPacket<T>where
T: Sync,
impl<T> Unpin for VPacket<T>where
T: Unpin,
impl<T> UnwindSafe for VPacket<T>where
T: UnwindSafe,
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