pub struct DiscoveryQuery<const VERSION: u8, B: Bytes>(/* private fields */);
Implementations§
Source§impl<const VERSION: u8, B: Bytes + BufferMut + BufferDefault + BufferResize> DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, B: Bytes + BufferMut + BufferDefault + BufferResize> DiscoveryQuery<VERSION, B>
Source§impl<const VERSION: u8, B: Bytes + BufferMut + BufferDefault + BufferTryResize> DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, B: Bytes + BufferMut + BufferDefault + BufferTryResize> DiscoveryQuery<VERSION, B>
Sourcepub fn try_new() -> Result<Self, BufferOverflow>where
Self: CiVersion<VERSION>,
pub fn try_new() -> Result<Self, BufferOverflow>where
Self: CiVersion<VERSION>,
Create a new message backed by a buffer with fallible resize.
Source§impl<const VERSION: u8, B: Bytes> DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, B: Bytes> DiscoveryQuery<VERSION, B>
pub fn set_source(&mut self, value: u28)
pub fn device_manufacturer(&self) -> [u7; 3]where
Self: CiVersion<1u8>,
pub fn set_device_manufacturer(&mut self, value: [u7; 3])
pub fn device_family(&self) -> u14where
Self: CiVersion<1u8>,
pub fn set_device_family(&mut self, value: u14)
pub fn model_number(&self) -> u14where
Self: CiVersion<1u8>,
pub fn set_model_number(&mut self, value: u14)
pub fn software_version(&self) -> [u7; 4]where
Self: CiVersion<1u8>,
pub fn set_software_version(&mut self, value: [u7; 4])
pub fn process_inquiry_supported(&self) -> boolwhere
Self: CiVersion<1u8>,
pub fn set_process_inquiry_supported(&mut self, value: bool)
pub fn property_exchange_supported(&self) -> boolwhere
Self: CiVersion<1u8>,
pub fn set_property_exchange_supported(&mut self, value: bool)
pub fn profile_configuration_supported(&self) -> boolwhere
Self: CiVersion<1u8>,
pub fn set_profile_configuration_supported(&mut self, value: bool)
pub fn protocol_negotiation_supported(&self) -> boolwhere
Self: CiVersion<1u8>,
pub fn set_protocol_negotiation_supported(&mut self, value: bool)
pub fn max_sysex_size(&self) -> u28where
Self: CiVersion<1u8>,
pub fn set_max_sysex_size(&mut self, value: u28)
pub fn output_path_id(&self) -> u7where
Self: CiVersion<2u8>,
pub fn set_output_path_id(&mut self, value: u7)
Source§impl<const VERSION: u8, B: Bytes + BufferMut + BufferResize> DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, B: Bytes + BufferMut + BufferResize> DiscoveryQuery<VERSION, B>
Sourcepub fn new_with_buffer(buffer: B) -> Selfwhere
Self: CiVersion<VERSION>,
pub fn new_with_buffer(buffer: B) -> Selfwhere
Self: CiVersion<VERSION>,
Create a new message backed by a resizable buffer.
Source§impl<const VERSION: u8, B: Bytes + BufferMut + BufferTryResize> DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, B: Bytes + BufferMut + BufferTryResize> DiscoveryQuery<VERSION, B>
Sourcepub fn try_new_with_buffer(buffer: B) -> Result<Self, BufferOverflow>where
Self: CiVersion<VERSION>,
pub fn try_new_with_buffer(buffer: B) -> Result<Self, BufferOverflow>where
Self: CiVersion<VERSION>,
Create a new message backed by a buffer with fallible resize.
Trait Implementations§
Source§impl<const VERSION: u8, B: Clone + Bytes> Clone for DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, B: Clone + Bytes> Clone for DiscoveryQuery<VERSION, B>
Source§fn clone(&self) -> DiscoveryQuery<VERSION, B>
fn clone(&self) -> DiscoveryQuery<VERSION, B>
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<const VERSION: u8, A: Bytes, B: Bytes + FromBuffer<A>> RebufferFrom<DiscoveryQuery<VERSION, A>> for DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, A: Bytes, B: Bytes + FromBuffer<A>> RebufferFrom<DiscoveryQuery<VERSION, A>> for DiscoveryQuery<VERSION, B>
fn rebuffer_from(other: DiscoveryQuery<VERSION, A>) -> Self
Source§impl<const VERSION: u8, A: Bytes, B: Bytes + TryFromBuffer<A>> TryRebufferFrom<DiscoveryQuery<VERSION, A>> for DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, A: Bytes, B: Bytes + TryFromBuffer<A>> TryRebufferFrom<DiscoveryQuery<VERSION, A>> for DiscoveryQuery<VERSION, B>
fn try_rebuffer_from( other: DiscoveryQuery<VERSION, A>, ) -> Result<Self, BufferOverflow>
impl<B: Bytes> CiVersion<1> for DiscoveryQuery<1u8, B>
impl<B: Bytes> CiVersion<1> for DiscoveryQuery<2u8, B>
impl<B: Bytes> CiVersion<2> for DiscoveryQuery<2u8, B>
impl<const VERSION: u8, B: Eq + Bytes> Eq for DiscoveryQuery<VERSION, B>
impl<const VERSION: u8, B: Bytes> StructuralPartialEq for DiscoveryQuery<VERSION, B>
Auto Trait Implementations§
impl<const VERSION: u8, B> Freeze for DiscoveryQuery<VERSION, B>where
B: Freeze,
impl<const VERSION: u8, B> RefUnwindSafe for DiscoveryQuery<VERSION, B>where
B: RefUnwindSafe,
impl<const VERSION: u8, B> Send for DiscoveryQuery<VERSION, B>where
B: Send,
impl<const VERSION: u8, B> Sync for DiscoveryQuery<VERSION, B>where
B: Sync,
impl<const VERSION: u8, B> Unpin for DiscoveryQuery<VERSION, B>where
B: Unpin,
impl<const VERSION: u8, B> UnwindSafe for DiscoveryQuery<VERSION, B>where
B: UnwindSafe,
Blanket Implementations§
Source§impl<T, V> ArrayRebufferInto<V> for Twhere
V: ArrayRebufferFrom<T>,
impl<T, V> ArrayRebufferInto<V> for Twhere
V: ArrayRebufferFrom<T>,
fn array_rebuffer_into(self) -> V
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> IntoBuffer<U> for Twhere
U: FromBuffer<T>,
impl<T, U> IntoBuffer<U> for Twhere
U: FromBuffer<T>,
fn into_buffer(self) -> U
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T, V> RebufferInto<V> for Twhere
V: RebufferFrom<T>,
impl<T, V> RebufferInto<V> for Twhere
V: RebufferFrom<T>,
fn rebuffer_into(self) -> V
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T, U> TryIntoBuffer<U> for Twhere
U: TryFromBuffer<T>,
impl<T, U> TryIntoBuffer<U> for Twhere
U: TryFromBuffer<T>,
fn try_into_buffer(self) -> Result<U, BufferOverflow>
Source§impl<T, U> TryIntoBytes<U> for Twhere
U: TryFromUmp<T>,
impl<T, U> TryIntoBytes<U> for Twhere
U: TryFromUmp<T>,
fn try_into_bytes(self) -> Result<U, BufferOverflow>
Source§impl<T, U> TryIntoUmp<U> for Twhere
U: TryFromBytes<T>,
impl<T, U> TryIntoUmp<U> for Twhere
U: TryFromBytes<T>,
fn try_into_ump(self) -> Result<U, BufferOverflow>
Source§impl<T, V> TryRebufferInto<V> for Twhere
V: TryRebufferFrom<T>,
impl<T, V> TryRebufferInto<V> for Twhere
V: TryRebufferFrom<T>,
fn try_rebuffer_into(self) -> Result<V, BufferOverflow>
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.