pub struct BrewingStand(pub Address);Expand description
The brewing_stand component (1 methods).
Provided by OpenComputers’ DriverBrewingStand$Environment.
Tuple Fields§
§0: AddressImplementations§
Source§impl BrewingStand
impl BrewingStand
Sourcepub fn get_brew_time(&self) -> Result<Number>
pub fn get_brew_time(&self) -> Result<Number>
Get the number of ticks remaining of the current brewing operation.
Lua: brewing_stand.getBrewTime():number
Indirect call: waits for the next server tick.
Sourcepub async fn get_brew_time_async(&self) -> Result<Number>
pub async fn get_brew_time_async(&self) -> Result<Number>
Self::get_brew_time without blocking: the call is queued, and
the program keeps running until the result comes back; see crate::task.
Trait Implementations§
Source§impl Clone for BrewingStand
impl Clone for BrewingStand
Source§impl Component for BrewingStand
impl Component for BrewingStand
Source§fn from_address(address: Address) -> Self
fn from_address(address: Address) -> Self
Wraps an address without checking what is there.
fn address(&self) -> &Address
Source§fn at(address: impl Into<Address>) -> Option<Self>
fn at(address: impl Into<Address>) -> Option<Self>
The component at
address, if it is of this type.Source§fn invoke(&self, method: &str, args: Vec<Value>) -> Result<Vec<Value>>
fn invoke(&self, method: &str, args: Vec<Value>) -> Result<Vec<Value>>
An untyped call, for methods the wrapper doesn’t know.
Source§fn invoke_async(&self, method: &str, args: Vec<Value>) -> Call ⓘ
fn invoke_async(&self, method: &str, args: Vec<Value>) -> Call ⓘ
Component::invoke without blocking; see invoke_async.Source§impl Debug for BrewingStand
impl Debug for BrewingStand
impl Eq for BrewingStand
Source§impl Hash for BrewingStand
impl Hash for BrewingStand
Source§impl PartialEq for BrewingStand
impl PartialEq for BrewingStand
impl StructuralPartialEq for BrewingStand
Auto Trait Implementations§
impl Forget for BrewingStand
impl Freeze for BrewingStand
impl Move 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