pub struct FluidHandler(pub Address);Expand description
The fluid_handler component (1 methods).
Provided by OpenComputers’ DriverFluidHandler$Environment.
Tuple Fields§
§0: AddressImplementations§
Source§impl FluidHandler
impl FluidHandler
Sourcepub fn get_tank_info(&self) -> Result<Value>
pub fn get_tank_info(&self) -> Result<Value>
Get some information about the tank accessible from the specified side.
Lua: fluid_handler.getTankInfo():table
Indirect call: waits for the next server tick.
Sourcepub async fn get_tank_info_async(&self) -> Result<Value>
pub async fn get_tank_info_async(&self) -> Result<Value>
Self::get_tank_info 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 FluidHandler
impl Clone for FluidHandler
Source§impl Component for FluidHandler
impl Component for FluidHandler
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 FluidHandler
impl Debug for FluidHandler
impl Eq for FluidHandler
Source§impl Hash for FluidHandler
impl Hash for FluidHandler
Source§impl PartialEq for FluidHandler
impl PartialEq for FluidHandler
impl StructuralPartialEq for FluidHandler
Auto Trait Implementations§
impl Forget for FluidHandler
impl Freeze for FluidHandler
impl Move for FluidHandler
impl RefUnwindSafe for FluidHandler
impl Send for FluidHandler
impl Sync for FluidHandler
impl Unpin for FluidHandler
impl UnsafeUnpin for FluidHandler
impl UnwindSafe for FluidHandler
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