pub struct Packet;Implementations§
Source§impl Packet
impl Packet
pub fn encode( header: &PacketHeader, ciphertext: &[u8], ) -> EnigmaAeadResult<Vec<u8>>
pub fn decode(packet: &[u8]) -> EnigmaAeadResult<PacketParts>
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more