pub struct Beep {
pub frequency: u16,
pub volume: u8,
pub duration: u32,
pub duration_remaining: u32,
}
Fields§
§frequency: u16
§volume: u8
§duration: u32
§duration_remaining: u32
Trait Implementations§
Source§impl FromByteSlice for Beep
impl FromByteSlice for Beep
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§fn from_le_byte_slice(bytes: &[u8]) -> Beep
fn from_le_byte_slice(bytes: &[u8]) -> Beep
Deserialize the implementing type from a byte slice.
impl Copy for Beep
impl Eq for Beep
impl StructuralPartialEq for Beep
Auto Trait Implementations§
impl Freeze for Beep
impl RefUnwindSafe for Beep
impl Send for Beep
impl Sync for Beep
impl Unpin for Beep
impl UnwindSafe for Beep
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