pub struct AddSourceOperation { /* private fields */ }
Expand description
See BASS spec v1.0 Section 3.1.1.4 for details.
Implementations§
Source§impl AddSourceOperation
impl AddSourceOperation
pub fn new( address_type: AddressType, advertiser_address: [u8; 6], advertising_sid: AdvertisingSetId, broadcast_id: BroadcastId, pa_sync: PaSync, pa_interval: PaInterval, subgroups: Vec<BigSubgroup>, ) -> Self
Trait Implementations§
Source§impl ControlPointOperation for AddSourceOperation
impl ControlPointOperation for AddSourceOperation
fn opcode() -> ControlPointOpcode
fn check_opcode(raw_value: u8) -> Result<ControlPointOpcode, PacketError>
Source§impl Debug for AddSourceOperation
impl Debug for AddSourceOperation
Source§impl Decodable for AddSourceOperation
impl Decodable for AddSourceOperation
type Error = Error
Source§fn decode(buf: &[u8]) -> (Result<Self, Self::Error>, usize)
fn decode(buf: &[u8]) -> (Result<Self, Self::Error>, usize)
Decodes into a new object or an error, and the number of bytes that
the decoding consumed. Should attempt to consume the entire item from
the buffer in the case of an error. If the item end cannot be determined,
return an error and consume the entirety of the bufer (
buf.len()
)§fn decode_multiple(
buf: &[u8],
max: Option<usize>,
) -> (Vec<Result<Self, Self::Error>>, usize)
fn decode_multiple( buf: &[u8], max: Option<usize>, ) -> (Vec<Result<Self, Self::Error>>, usize)
Tries to decode a collection of this object concatenated in a buffer.
Returns a vector of items (or errors) and the number of bytes consumed to
decode them.
Continues to decode items until the buffer is consumed or the max items.
If None, will decode the entire buffer.
Source§impl Encodable for AddSourceOperation
impl Encodable for AddSourceOperation
Source§impl PartialEq for AddSourceOperation
impl PartialEq for AddSourceOperation
impl StructuralPartialEq for AddSourceOperation
Auto Trait Implementations§
impl Freeze for AddSourceOperation
impl RefUnwindSafe for AddSourceOperation
impl Send for AddSourceOperation
impl Sync for AddSourceOperation
impl Unpin for AddSourceOperation
impl UnwindSafe for AddSourceOperation
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