pub struct MsfRpcClient { /* private fields */ }Implementations§
Source§impl MsfRpcClient
impl MsfRpcClient
pub fn new( host: &str, port: u16, username: &str, password: &str, ssl: bool, ) -> Self
pub fn login(&mut self) -> Result<MSFLoginResult>
pub fn logout(&mut self)
pub fn is_authenticated(&self) -> bool
pub fn get_workspaces(&self) -> Result<MSFWorkspacesResult>
pub fn get_hosts(&self, workspace: Option<&str>) -> Result<MSFHostsResult>
pub fn check_host_exists( &self, address: &str, workspace: Option<&str>, ) -> Result<MSFHostCheckResult>
Trait Implementations§
Source§impl Clone for MsfRpcClient
impl Clone for MsfRpcClient
Source§fn clone(&self) -> MsfRpcClient
fn clone(&self) -> MsfRpcClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MsfRpcClient
impl RefUnwindSafe for MsfRpcClient
impl Send for MsfRpcClient
impl Sync for MsfRpcClient
impl Unpin for MsfRpcClient
impl UnsafeUnpin for MsfRpcClient
impl UnwindSafe for MsfRpcClient
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