pub struct BrewingStand { /* private fields */ }Expand description
A brewing stand device
Implementations§
Source§impl BrewingStand
impl BrewingStand
Sourcepub fn get_brew_time(&self) -> Result<Option<Duration>, HlapiClientError>
pub fn get_brew_time(&self) -> Result<Option<Duration>, HlapiClientError>
Gets the remaining brew time. None if not currently brewing.
Sourcepub fn get_fuel(&self) -> Result<u32, HlapiClientError>
pub fn get_fuel(&self) -> Result<u32, HlapiClientError>
Gets how many brews the stand has remaining with the current fuel level
Trait Implementations§
Source§impl Clone for BrewingStand
impl Clone for BrewingStand
Source§impl Debug for BrewingStand
impl Debug for BrewingStand
Source§impl DeviceBase for BrewingStand
impl DeviceBase for BrewingStand
Source§type Event = !
type Event = !
The event type for this device’s events. Should be set to
Infallible if parse_event is not implemented.Source§fn new(client: HlapiClient, uuid: Uuid) -> Result<Self, HlapiClientError>
fn new(client: HlapiClient, uuid: Uuid) -> Result<Self, HlapiClientError>
Create a device wrapper
Source§fn client(&self) -> &HlapiClient
fn client(&self) -> &HlapiClient
Gets the client associated with this device
Source§fn call<R: DeserializeOwned>(
&self,
method: &str,
args: &[&dyn ErasedSerialize],
blobs: &[&[u8]],
) -> Result<(R, Vec<Vec<u8>>), HlapiClientError>
fn call<R: DeserializeOwned>( &self, method: &str, args: &[&dyn ErasedSerialize], blobs: &[&[u8]], ) -> Result<(R, Vec<Vec<u8>>), HlapiClientError>
Call a method on this device Read more
Auto Trait Implementations§
impl Freeze for BrewingStand
impl RefUnwindSafe for BrewingStand
impl Send for BrewingStand
impl Sync for BrewingStand
impl Unpin for BrewingStand
impl UnsafeUnpin for BrewingStand
impl UnwindSafe for BrewingStand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Device for Twhere
T: DeviceBase,
impl<T> Device for Twhere
T: DeviceBase,
Source§fn list_methods(&self) -> Result<Vec<MethodInfo>, HlapiClientError>
fn list_methods(&self) -> Result<Vec<MethodInfo>, HlapiClientError>
List the methods of the device
Source§fn event_stream(&self) -> EventStream<<T as DeviceBase>::Event>
fn event_stream(&self) -> EventStream<<T as DeviceBase>::Event>
Gets the stream of events from the device