pub struct PlBuilder { /* private fields */ }Expand description
Builds parameter values in a byte order.
Implementations§
Source§impl PlBuilder
impl PlBuilder
Sourcepub fn new(endianness: Endianness) -> Self
pub fn new(endianness: Endianness) -> Self
Values in the given byte order.
Sourcepub fn u32(&self, id: ParameterId, v: u32) -> Parameter
pub fn u32(&self, id: ParameterId, v: u32) -> Parameter
unsigned long or long.
Sourcepub fn bool(&self, id: ParameterId, v: bool) -> Parameter
pub fn bool(&self, id: ParameterId, v: bool) -> Parameter
boolean.
Sourcepub fn string(&self, id: ParameterId, v: &str) -> Parameter
pub fn string(&self, id: ParameterId, v: &str) -> Parameter
string.
Sourcepub fn strings(&self, id: ParameterId, v: &[String]) -> Parameter
pub fn strings(&self, id: ParameterId, v: &[String]) -> Parameter
sequence<string>.
Sourcepub fn string_pairs(&self, id: ParameterId, v: &[(String, String)]) -> Parameter
pub fn string_pairs(&self, id: ParameterId, v: &[(String, String)]) -> Parameter
sequence<struct { string; string; }>, as DataTags.
Sourcepub fn content_filter(
&self,
id: ParameterId,
v: &ContentFilterProperty,
) -> Parameter
pub fn content_filter( &self, id: ParameterId, v: &ContentFilterProperty, ) -> Parameter
ContentFilterProperty_t (9.6.2.2.1).
Sourcepub fn octets(&self, id: ParameterId, v: &[u8]) -> Parameter
pub fn octets(&self, id: ParameterId, v: &[u8]) -> Parameter
sequence<octet>.
Sourcepub fn guid(&self, id: ParameterId, v: Guid) -> Parameter
pub fn guid(&self, id: ParameterId, v: Guid) -> Parameter
GUID_t.
Sourcepub fn entity_id(&self, id: ParameterId, v: EntityId) -> Parameter
pub fn entity_id(&self, id: ParameterId, v: EntityId) -> Parameter
EntityId_t.
Sourcepub fn locator(&self, id: ParameterId, v: &Locator) -> Parameter
pub fn locator(&self, id: ParameterId, v: &Locator) -> Parameter
Locator_t.
Sourcepub fn duration(&self, id: ParameterId, v: Duration) -> Parameter
pub fn duration(&self, id: ParameterId, v: Duration) -> Parameter
Duration_t.
Sourcepub fn protocol_version(&self, id: ParameterId, v: ProtocolVersion) -> Parameter
pub fn protocol_version(&self, id: ParameterId, v: ProtocolVersion) -> Parameter
ProtocolVersion_t.
Sourcepub fn vendor_id(&self, id: ParameterId, v: VendorId) -> Parameter
pub fn vendor_id(&self, id: ParameterId, v: VendorId) -> Parameter
VendorId_t.
Trait Implementations§
Auto Trait Implementations§
impl Forget for PlBuilder
impl Freeze for PlBuilder
impl Move for PlBuilder
impl RefUnwindSafe for PlBuilder
impl Send for PlBuilder
impl Sync for PlBuilder
impl Unpin for PlBuilder
impl UnsafeUnpin for PlBuilder
impl UnwindSafe for PlBuilder
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