pub struct PduDaemon { /* private fields */ }
Implementations§
Source§impl PduDaemon
impl PduDaemon
Sourcepub fn new(url: &str) -> Result<Self, PduDaemonError>
pub fn new(url: &str) -> Result<Self, PduDaemonError>
Create a new Pdudaemon client
Sourcepub async fn on(&self, hostname: &str, port: &str) -> Result<(), PduDaemonError>
pub async fn on(&self, hostname: &str, port: &str) -> Result<(), PduDaemonError>
Send the on command to a given pdu hostname and port
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PduDaemon
impl !RefUnwindSafe for PduDaemon
impl Send for PduDaemon
impl Sync for PduDaemon
impl Unpin for PduDaemon
impl !UnwindSafe for PduDaemon
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