pub struct AlarmStream { /* private fields */ }Implementations§
Source§impl AlarmStream
impl AlarmStream
pub fn new(samples: Vec<AlarmSample>) -> Self
pub fn from_samples(samples: &[AlarmSample]) -> Self
pub fn push_clone(&mut self, sample: &AlarmSample)
pub fn samples(&self) -> &[AlarmSample]
Trait Implementations§
Source§impl Clone for AlarmStream
impl Clone for AlarmStream
Source§fn clone(&self) -> AlarmStream
fn clone(&self) -> AlarmStream
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 AlarmStream
impl Debug for AlarmStream
Source§impl Default for AlarmStream
impl Default for AlarmStream
Source§fn default() -> AlarmStream
fn default() -> AlarmStream
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlarmStream
impl<'de> Deserialize<'de> for AlarmStream
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AlarmStream
impl PartialEq for AlarmStream
Source§impl Serialize for AlarmStream
impl Serialize for AlarmStream
impl StructuralPartialEq for AlarmStream
Auto Trait Implementations§
impl Freeze for AlarmStream
impl RefUnwindSafe for AlarmStream
impl Send for AlarmStream
impl Sync for AlarmStream
impl Unpin for AlarmStream
impl UnsafeUnpin for AlarmStream
impl UnwindSafe for AlarmStream
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