Struct x328_proto::master::Master
source · pub struct Master { /* private fields */ }
Expand description
X3.28 bus controller.
Implementations§
source§impl Master
impl Master
sourcepub fn write_parameter(
&mut self,
address: Address,
parameter: Parameter,
value: Value
) -> impl SendData<Response = ()> + '_
pub fn write_parameter( &mut self, address: Address, parameter: Parameter, value: Value ) -> impl SendData<Response = ()> + '_
Initiate a write command to a node.
The returned opaque type holds the data that should be transmitted on the bus. It also holds a mutable reference to self, so that only one operation can be in progress at a time.
Timeouts and other errors can be handled by dropping the returned value.
sourcepub fn read_parameter(
&mut self,
address: Address,
parameter: Parameter
) -> impl SendData<Response = Value> + '_
pub fn read_parameter( &mut self, address: Address, parameter: Parameter ) -> impl SendData<Response = Value> + '_
Initiate a read command to a node.
The returned opaque type holds the data that should be transmitted
on the bus. See also write_parameter()
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Master
impl Send for Master
impl Sync for Master
impl Unpin for Master
impl UnwindSafe for Master
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