pub struct VnishWebAPI {
pub ip: IpAddr,
/* private fields */
}Expand description
VNish WebAPI client
Fields§
§ip: IpAddrImplementations§
Trait Implementations§
Source§impl APIClient for VnishWebAPI
impl APIClient for VnishWebAPI
fn get_api_result<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 MinerCommand,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Debug for VnishWebAPI
impl Debug for VnishWebAPI
Source§impl WebAPIClient for VnishWebAPI
impl WebAPIClient for VnishWebAPI
Source§fn send_command<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 str,
_privileged: bool,
parameters: Option<Value>,
method: Method,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_command<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 str,
_privileged: bool,
parameters: Option<Value>,
method: Method,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a command to the Vnish miner API
Auto Trait Implementations§
impl !Freeze for VnishWebAPI
impl !RefUnwindSafe for VnishWebAPI
impl Send for VnishWebAPI
impl Sync for VnishWebAPI
impl Unpin for VnishWebAPI
impl !UnwindSafe for VnishWebAPI
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