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
Source§type SendError = RmcpIpmiError
type SendError = RmcpIpmiError
The type of error the can occur when sending a
Request.Source§type RecvError = RmcpIpmiError
type RecvError = RmcpIpmiError
The type of error that can occur when receiving a
Response.Source§type Error = RmcpIpmiError
type Error = RmcpIpmiError
Source§fn send(&mut self, request: &mut Request) -> Result<(), Self::SendError>
fn send(&mut self, request: &mut Request) -> Result<(), Self::SendError>
Send
request to the remote end of this connection.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