pub struct MikrotikClient {
client: Client,
endpoint: Url,
username: String,
pass: SecretString,
}
Fields§
§client: Client
§endpoint: Url
§username: String
§pass: SecretString
Implementations§
source§impl MikrotikClient
impl MikrotikClient
pub async fn get_dhcp_leases(&self) -> Result<Vec<DhcpEntry>>
source§impl MikrotikClient
impl MikrotikClient
pub async fn get_identity(&self) -> Result<Identity>
source§impl MikrotikClient
impl MikrotikClient
pub async fn get_interfaces(&self) -> Result<Vec<Interface>>
source§impl MikrotikClient
impl MikrotikClient
pub async fn get_resource(&self) -> Result<Resource>
pub async fn get_health(&self) -> Result<Vec<HealthRecord>>
Trait Implementations§
source§impl Clone for MikrotikClient
impl Clone for MikrotikClient
source§fn clone(&self) -> MikrotikClient
fn clone(&self) -> MikrotikClient
Returns a copy of the value. Read more
1.0.0 · 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 !RefUnwindSafe for MikrotikClient
impl Send for MikrotikClient
impl Sync for MikrotikClient
impl Unpin for MikrotikClient
impl !UnwindSafe for MikrotikClient
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more