pub struct BridgePacket { /* private fields */ }Expand description
Bridge packet.
Implementations§
Source§impl BridgePacket
impl BridgePacket
Sourcepub fn new(magic: u32, request: u16, method: u16) -> Self
pub fn new(magic: u32, request: u16, method: u16) -> Self
Creates a new packet with the given request and method.
Sourcepub fn with_value1(self, value1: u64) -> Self
pub fn with_value1(self, value1: u64) -> Self
Sets the first value of the packet.
Sourcepub fn with_value2(self, value2: u64) -> Self
pub fn with_value2(self, value2: u64) -> Self
Sets the second value of the packet.
Sourcepub fn with_value3(self, value3: u64) -> Self
pub fn with_value3(self, value3: u64) -> Self
Sets the third value of the packet.
Sourcepub fn with_value4(self, value4: u64) -> Self
pub fn with_value4(self, value4: u64) -> Self
Sets the fourth value of the packet.
Trait Implementations§
Source§impl Clone for BridgePacket
impl Clone for BridgePacket
Source§fn clone(&self) -> BridgePacket
fn clone(&self) -> BridgePacket
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 BridgePacket
impl Debug for BridgePacket
Source§impl Default for BridgePacket
impl Default for BridgePacket
Source§fn default() -> BridgePacket
fn default() -> BridgePacket
Returns the “default value” for a type. Read more
impl Copy for BridgePacket
Auto Trait Implementations§
impl Freeze for BridgePacket
impl RefUnwindSafe for BridgePacket
impl Send for BridgePacket
impl Sync for BridgePacket
impl Unpin for BridgePacket
impl UnwindSafe for BridgePacket
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