pub struct Rmcp { /* private fields */ }Implementations§
Source§impl Rmcp
impl Rmcp
pub fn new<R>(remote: R, timeout: Duration) -> Result<Self, Error>where
R: ToSocketAddrs + Debug,
pub fn inactive_clone(&self) -> Self
pub fn is_active(&self) -> bool
Sourcepub fn activate(
&mut self,
rmcp_plus: bool,
username: Option<&str>,
password: Option<&[u8]>,
) -> Result<(), ActivationError>
pub fn activate( &mut self, rmcp_plus: bool, username: Option<&str>, password: Option<&[u8]>, ) -> Result<(), ActivationError>
Activate this RMCP connection with the provided username and password.
If rmcp_plus is true, upgrade the connection to an RMCP+ connection
if the remote host supports it.
Trait Implementations§
Source§impl IpmiConnection for Rmcp
impl IpmiConnection for Rmcp
type SendError = RmcpIpmiError
type RecvError = RmcpIpmiError
type Error = RmcpIpmiError
fn send(&mut self, request: &mut Request) -> Result<(), Self::SendError>
fn recv(&mut self) -> Result<Response, Self::RecvError>
fn send_recv(&mut self, request: &mut Request) -> Result<Response, Self::Error>
Auto Trait Implementations§
impl Freeze for Rmcp
impl RefUnwindSafe for Rmcp
impl Send for Rmcp
impl Sync for Rmcp
impl Unpin for Rmcp
impl UnwindSafe for Rmcp
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