Struct nimble_rust::SampleState
source · pub struct SampleState {
pub x: i32,
pub y: i32,
}
Fields§
§x: i32
§y: i32
Implementations§
source§impl SampleState
impl SampleState
pub fn update(&mut self, step: &AuthoritativeStep<Step<SampleStep>>)
pub fn to_octets(&self) -> Result<Vec<u8>, Error>
pub fn from_octets(payload: &[u8]) -> Result<SampleState, Error>
Trait Implementations§
source§impl Clone for SampleState
impl Clone for SampleState
source§fn clone(&self) -> SampleState
fn clone(&self) -> SampleState
Returns a copy 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 SampleState
impl Debug for SampleState
source§impl Default for SampleState
impl Default for SampleState
source§fn default() -> SampleState
fn default() -> SampleState
Returns the “default value” for a type. Read more
source§impl Deserialize for SampleState
impl Deserialize for SampleState
fn deserialize(stream: &mut impl ReadOctetStream) -> Result<SampleState, Error>
source§impl PartialEq for SampleState
impl PartialEq for SampleState
source§impl Serialize for SampleState
impl Serialize for SampleState
impl Eq for SampleState
impl StructuralPartialEq for SampleState
Auto Trait Implementations§
impl Freeze for SampleState
impl RefUnwindSafe for SampleState
impl Send for SampleState
impl Sync for SampleState
impl Unpin for SampleState
impl UnwindSafe for SampleState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)