Struct dnp3::master::CommandBuilder [−][src]
Builder object used to create a CommandHeaders
Implementations
impl CommandBuilder
[src]
pub fn new() -> Self
[src]
construct a new CommandBuilder
instance
pub fn finish_header(&mut self)
[src]
Manually complete any partially built header.
This allows for building multiple headers of the same type, e.g. two g12v1 values in two separate headers
pub fn build(self) -> CommandHeaders
[src]
Consume the instance and return a fully built CommandHeaders
Trait Implementations
impl Clone for CommandBuilder
[src]
fn clone(&self) -> CommandBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CommandSupport<Group12Var1> for CommandBuilder
[src]
fn add_u8(&mut self, command: Group12Var1, index: u8)
[src]
fn add_u16(&mut self, command: Group12Var1, index: u16)
[src]
fn single_header_u8(command: Group12Var1, index: u8) -> CommandHeaders
[src]
fn single_header_u16(command: Group12Var1, index: u16) -> CommandHeaders
[src]
impl CommandSupport<Group41Var1> for CommandBuilder
[src]
fn add_u8(&mut self, command: Group41Var1, index: u8)
[src]
fn add_u16(&mut self, command: Group41Var1, index: u16)
[src]
fn single_header_u8(command: Group41Var1, index: u8) -> CommandHeaders
[src]
fn single_header_u16(command: Group41Var1, index: u16) -> CommandHeaders
[src]
impl CommandSupport<Group41Var2> for CommandBuilder
[src]
fn add_u8(&mut self, command: Group41Var2, index: u8)
[src]
fn add_u16(&mut self, command: Group41Var2, index: u16)
[src]
fn single_header_u8(command: Group41Var2, index: u8) -> CommandHeaders
[src]
fn single_header_u16(command: Group41Var2, index: u16) -> CommandHeaders
[src]
impl CommandSupport<Group41Var3> for CommandBuilder
[src]
fn add_u8(&mut self, command: Group41Var3, index: u8)
[src]
fn add_u16(&mut self, command: Group41Var3, index: u16)
[src]
fn single_header_u8(command: Group41Var3, index: u8) -> CommandHeaders
[src]
fn single_header_u16(command: Group41Var3, index: u16) -> CommandHeaders
[src]
impl CommandSupport<Group41Var4> for CommandBuilder
[src]
fn add_u8(&mut self, command: Group41Var4, index: u8)
[src]
fn add_u16(&mut self, command: Group41Var4, index: u16)
[src]
fn single_header_u8(command: Group41Var4, index: u8) -> CommandHeaders
[src]
fn single_header_u16(command: Group41Var4, index: u16) -> CommandHeaders
[src]
impl Default for CommandBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommandBuilder
[src]
impl Send for CommandBuilder
[src]
impl Sync for CommandBuilder
[src]
impl Unpin for CommandBuilder
[src]
impl UnwindSafe for CommandBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,