pub struct LinkPacket { /* private fields */ }Implementations§
Source§impl LinkPacket
impl LinkPacket
pub fn new(reply_to: ReplyTo, nw: NarrowWaistPacket) -> Self
pub fn narrow_waist(&self) -> NarrowWaistPacket
pub fn reply_to(&self) -> ReplyTo
pub fn change_origination(&self, reply_to: ReplyTo) -> Self
pub fn as_bytes(&self, link_id: LinkId) -> Result<Vec<u8>>
pub fn from_bytes( data: &[u8], link_id: LinkId, ) -> Result<(PublicIdentity, Self)>
Trait Implementations§
Source§impl Clone for LinkPacket
impl Clone for LinkPacket
Source§fn clone(&self) -> LinkPacket
fn clone(&self) -> LinkPacket
Returns a duplicate 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 LinkPacket
impl Debug for LinkPacket
Source§impl PartialEq for LinkPacket
impl PartialEq for LinkPacket
impl Eq for LinkPacket
impl StructuralPartialEq for LinkPacket
Auto Trait Implementations§
impl Freeze for LinkPacket
impl RefUnwindSafe for LinkPacket
impl Send for LinkPacket
impl Sync for LinkPacket
impl Unpin for LinkPacket
impl UnwindSafe for LinkPacket
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