pub struct FluidTank(pub Address);Expand description
The fluid_tank component (1 methods).
Provided by OpenComputers’ DriverFluidTank$Environment.
Tuple Fields§
§0: AddressImplementations§
Source§impl FluidTank
impl FluidTank
Sourcepub fn get_info(&self) -> Result<Value>
pub fn get_info(&self) -> Result<Value>
Get some information about this tank.
Lua: fluid_tank.getInfo():table
Indirect call: waits for the next server tick.
Sourcepub async fn get_info_async(&self) -> Result<Value>
pub async fn get_info_async(&self) -> Result<Value>
Self::get_info without blocking: the call is queued, and
the program keeps running until the result comes back; see crate::task.
Trait Implementations§
Source§impl Component for FluidTank
impl Component for FluidTank
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.impl Eq for FluidTank
impl StructuralPartialEq for FluidTank
Auto Trait Implementations§
impl Forget for FluidTank
impl Freeze for FluidTank
impl Move for FluidTank
impl RefUnwindSafe for FluidTank
impl Send for FluidTank
impl Sync for FluidTank
impl Unpin for FluidTank
impl UnsafeUnpin for FluidTank
impl UnwindSafe for FluidTank
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