Struct pjlink::PjlinkDevice [−][src]
pub struct PjlinkDevice { /* fields omitted */ }
Methods
impl PjlinkDevice
[src]
impl PjlinkDevice
pub fn new(host: &str) -> Result<PjlinkDevice, Box<Error>>
[src]
pub fn new(host: &str) -> Result<PjlinkDevice, Box<Error>>
Constructs a new PjlinkDevice.
pub fn new_with_password(
host: &str,
password: &str
) -> Result<PjlinkDevice, Box<Error>>
[src]
pub fn new_with_password(
host: &str,
password: &str
) -> Result<PjlinkDevice, Box<Error>>
Contructs a new PjlinkDevice that has a password
pub fn send_command(&self, command: &str) -> Result<String, Error>
[src]
pub fn send_command(&self, command: &str) -> Result<String, Error>
Send a command and a Result with the raw string or an error
pub fn get_power_status(&self) -> Result<PowerStatus, Error>
[src]
pub fn get_power_status(&self) -> Result<PowerStatus, Error>
Check the power status of the device and returns an enum
pub fn power_on(&self) -> Result<PowerStatus, Error>
[src]
pub fn power_on(&self) -> Result<PowerStatus, Error>
Turn on the device
pub fn power_off(&self) -> Result<PowerStatus, Error>
[src]
pub fn power_off(&self) -> Result<PowerStatus, Error>
Turn off the device
Auto Trait Implementations
impl Send for PjlinkDevice
impl Send for PjlinkDevice
impl Sync for PjlinkDevice
impl Sync for PjlinkDevice