pub struct GetSessionChallenge { /* private fields */ }Expand description
The Get Session Challenge command.
Implementations§
Source§impl GetSessionChallenge
impl GetSessionChallenge
Sourcepub fn new(
auth_type: AuthType,
username: Option<&str>,
) -> Option<GetSessionChallenge>
pub fn new( auth_type: AuthType, username: Option<&str>, ) -> Option<GetSessionChallenge>
Create a new GetSessionChallenge command.
auth_type: the auth type to requests a session challenge for.username: an optional username to request a session challenge for.
Will return None if username is longer than 16 bytes.
Trait Implementations§
Source§impl Clone for GetSessionChallenge
impl Clone for GetSessionChallenge
Source§fn clone(&self) -> GetSessionChallenge
fn clone(&self) -> GetSessionChallenge
Returns a duplicate 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 moreSource§impl Debug for GetSessionChallenge
impl Debug for GetSessionChallenge
Source§impl From<GetSessionChallenge> for Message
impl From<GetSessionChallenge> for Message
Source§fn from(value: GetSessionChallenge) -> Message
fn from(value: GetSessionChallenge) -> Message
Converts to this type from the input type.
Source§impl IpmiCommand for GetSessionChallenge
impl IpmiCommand for GetSessionChallenge
Source§type Output = SessionChallenge
type Output = SessionChallenge
The output of this command, i.e. the expected response type.
Source§type Error = AuthError
type Error = AuthError
The type of error that can occur while parsing the response for this
command.
Source§fn parse_success_response(
data: &[u8],
) -> Result<<GetSessionChallenge as IpmiCommand>::Output, <GetSessionChallenge as IpmiCommand>::Error>
fn parse_success_response( data: &[u8], ) -> Result<<GetSessionChallenge as IpmiCommand>::Output, <GetSessionChallenge as IpmiCommand>::Error>
Try to parse the expected response for this command from the
provided
data, assuming a successful completion code.Source§fn handle_completion_code(
completion_code: CompletionErrorCode,
data: &[u8],
) -> Option<Self::Error>
fn handle_completion_code( completion_code: CompletionErrorCode, data: &[u8], ) -> Option<Self::Error>
Handle the provided completion code
completion_code and optionally provide
a special error in case of failure. Read moreSource§impl PartialEq for GetSessionChallenge
impl PartialEq for GetSessionChallenge
impl Copy for GetSessionChallenge
impl StructuralPartialEq for GetSessionChallenge
Auto Trait Implementations§
impl Freeze for GetSessionChallenge
impl RefUnwindSafe for GetSessionChallenge
impl Send for GetSessionChallenge
impl Sync for GetSessionChallenge
impl Unpin for GetSessionChallenge
impl UnwindSafe for GetSessionChallenge
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