Struct midi2::system_common::ActiveSensing
source · pub struct ActiveSensing<B: Buffer>(/* private fields */);Implementations§
source§impl<B: Buffer + BufferMut + BufferDefault + BufferResize> ActiveSensing<B>
impl<B: Buffer + BufferMut + BufferDefault + BufferResize> ActiveSensing<B>
sourcepub fn new() -> ActiveSensing<B>
pub fn new() -> ActiveSensing<B>
Create a new message backed by a resizable buffer.
source§impl<const SIZE: usize, U: Unit> ActiveSensing<[U; SIZE]>
impl<const SIZE: usize, U: Unit> ActiveSensing<[U; SIZE]>
sourcepub fn new() -> ActiveSensing<[U; SIZE]>
pub fn new() -> ActiveSensing<[U; SIZE]>
Create a new message backed by a simple array type buffer.
Note: this constructor will fail to compile for SIZE values
which are smaller than the minimum representable message size.
source§impl<B: Buffer + BufferMut + BufferDefault + BufferTryResize> ActiveSensing<B>
impl<B: Buffer + BufferMut + BufferDefault + BufferTryResize> ActiveSensing<B>
sourcepub fn try_new() -> Result<ActiveSensing<B>, BufferOverflow>
pub fn try_new() -> Result<ActiveSensing<B>, BufferOverflow>
Create a new message backed by a buffer with fallible resize.
Trait Implementations§
source§impl<B: Buffer> Debug for ActiveSensing<B>
impl<B: Buffer> Debug for ActiveSensing<B>
source§impl<B: Bytes> From<ActiveSensing<B>> for BytesMessage<B>
impl<B: Bytes> From<ActiveSensing<B>> for BytesMessage<B>
source§fn from(value: ActiveSensing<B>) -> Self
fn from(value: ActiveSensing<B>) -> Self
Converts to this type from the input type.
source§impl<B: Buffer> From<ActiveSensing<B>> for SystemCommon<B>
impl<B: Buffer> From<ActiveSensing<B>> for SystemCommon<B>
source§fn from(original: ActiveSensing<B>) -> SystemCommon<B>
fn from(original: ActiveSensing<B>) -> SystemCommon<B>
Converts to this type from the input type.
source§impl<B: Ump> From<ActiveSensing<B>> for UmpMessage<B>
impl<B: Ump> From<ActiveSensing<B>> for UmpMessage<B>
source§fn from(value: ActiveSensing<B>) -> Self
fn from(value: ActiveSensing<B>) -> Self
Converts to this type from the input type.
source§impl<const SIZE: usize, A: Bytes> FromBytes<ActiveSensing<A>> for ActiveSensing<[u32; SIZE]>
impl<const SIZE: usize, A: Bytes> FromBytes<ActiveSensing<A>> for ActiveSensing<[u32; SIZE]>
fn from_bytes(other: ActiveSensing<A>) -> Self
source§impl<A: Bytes, B: Ump + BufferMut + BufferDefault + BufferResize> FromBytes<ActiveSensing<A>> for ActiveSensing<B>
impl<A: Bytes, B: Ump + BufferMut + BufferDefault + BufferResize> FromBytes<ActiveSensing<A>> for ActiveSensing<B>
fn from_bytes(other: ActiveSensing<A>) -> Self
source§impl<const SIZE: usize, A: Ump> FromUmp<ActiveSensing<A>> for ActiveSensing<[u8; SIZE]>
impl<const SIZE: usize, A: Ump> FromUmp<ActiveSensing<A>> for ActiveSensing<[u8; SIZE]>
fn from_ump(other: ActiveSensing<A>) -> Self
source§impl<A: Ump, B: Bytes + BufferMut + BufferDefault + BufferResize> FromUmp<ActiveSensing<A>> for ActiveSensing<B>
impl<A: Ump, B: Bytes + BufferMut + BufferDefault + BufferResize> FromUmp<ActiveSensing<A>> for ActiveSensing<B>
fn from_ump(other: ActiveSensing<A>) -> Self
source§impl<B: Ump> Grouped<B> for ActiveSensing<B>
impl<B: Ump> Grouped<B> for ActiveSensing<B>
source§impl<B: Ump> Packets for ActiveSensing<B>
impl<B: Ump> Packets for ActiveSensing<B>
fn packets(&self) -> PacketsIterator<'_> ⓘ
source§impl<B: PartialEq + Buffer> PartialEq for ActiveSensing<B>
impl<B: PartialEq + Buffer> PartialEq for ActiveSensing<B>
source§fn eq(&self, other: &ActiveSensing<B>) -> bool
fn eq(&self, other: &ActiveSensing<B>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<const SIZE: usize, A: Buffer> RebufferFrom<ActiveSensing<A>> for ActiveSensing<[<A as Buffer>::Unit; SIZE]>
impl<const SIZE: usize, A: Buffer> RebufferFrom<ActiveSensing<A>> for ActiveSensing<[<A as Buffer>::Unit; SIZE]>
fn rebuffer_from(other: ActiveSensing<A>) -> Self
source§impl<U: Unit, A: Buffer<Unit = U>, B: Buffer<Unit = U> + BufferMut + BufferDefault + BufferResize> RebufferFrom<ActiveSensing<A>> for ActiveSensing<B>
impl<U: Unit, A: Buffer<Unit = U>, B: Buffer<Unit = U> + BufferMut + BufferDefault + BufferResize> RebufferFrom<ActiveSensing<A>> for ActiveSensing<B>
fn rebuffer_from(other: ActiveSensing<A>) -> Self
source§impl<A: Bytes, B: Ump + BufferMut + BufferDefault + BufferTryResize> TryFromBytes<ActiveSensing<A>> for ActiveSensing<B>
impl<A: Bytes, B: Ump + BufferMut + BufferDefault + BufferTryResize> TryFromBytes<ActiveSensing<A>> for ActiveSensing<B>
fn try_from_bytes(other: ActiveSensing<A>) -> Result<Self, BufferOverflow>
source§impl<A: Ump, B: Bytes + BufferMut + BufferDefault + BufferTryResize> TryFromUmp<ActiveSensing<A>> for ActiveSensing<B>
impl<A: Ump, B: Bytes + BufferMut + BufferDefault + BufferTryResize> TryFromUmp<ActiveSensing<A>> for ActiveSensing<B>
fn try_from_ump(other: ActiveSensing<A>) -> Result<Self, BufferOverflow>
source§impl<U: Unit, A: Buffer<Unit = U>, B: Buffer<Unit = U> + BufferMut + BufferDefault + BufferTryResize> TryRebufferFrom<ActiveSensing<A>> for ActiveSensing<B>
impl<U: Unit, A: Buffer<Unit = U>, B: Buffer<Unit = U> + BufferMut + BufferDefault + BufferTryResize> TryRebufferFrom<ActiveSensing<A>> for ActiveSensing<B>
fn try_rebuffer_from(other: ActiveSensing<A>) -> Result<Self, BufferOverflow>
impl<B: Eq + Buffer> Eq for ActiveSensing<B>
impl<B: Buffer> StructuralPartialEq for ActiveSensing<B>
Auto Trait Implementations§
impl<B> Freeze for ActiveSensing<B>where
B: Freeze,
impl<B> RefUnwindSafe for ActiveSensing<B>where
B: RefUnwindSafe,
impl<B> Send for ActiveSensing<B>where
B: Send,
impl<B> Sync for ActiveSensing<B>where
B: Sync,
impl<B> Unpin for ActiveSensing<B>where
B: Unpin,
impl<B> UnwindSafe for ActiveSensing<B>where
B: UnwindSafe,
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