#[repr(C)]pub struct CallbackStatusResponse { /* private fields */ }
Expand description
Represents a response to a callback call made by the device.
Implementations§
Source§impl CallbackStatusResponse
impl CallbackStatusResponse
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CallbackStatusResponse.
Sourcepub const fn create(status: i32, result: i32) -> Self
pub const fn create(status: i32, result: i32) -> Self
Creates a new CallbackStatusResponse from the provided parameters.
Sourcepub const fn status(&self) -> u32
pub const fn status(&self) -> u32
Gets the CallbackStatus value.
Sourcepub fn set_status(&mut self, val: i32)
pub fn set_status(&mut self, val: i32)
Sets the CallbackStatus value.
Sourcepub fn with_status(self, val: i32) -> Self
pub fn with_status(self, val: i32) -> Self
Builder function that sets the CallbackStatus value.
Sourcepub const fn result(&self) -> u32
pub const fn result(&self) -> u32
Gets the CallbackResult value.
Sourcepub fn set_result(&mut self, val: i32)
pub fn set_result(&mut self, val: i32)
Sets the CallbackResult value.
Sourcepub fn with_result(self, val: i32) -> Self
pub fn with_result(self, val: i32) -> Self
Builder function that sets the CallbackResult value.
Trait Implementations§
Source§impl Clone for CallbackStatusResponse
impl Clone for CallbackStatusResponse
Source§fn clone(&self) -> CallbackStatusResponse
fn clone(&self) -> CallbackStatusResponse
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 CallbackStatusResponse
impl Debug for CallbackStatusResponse
Source§impl Default for CallbackStatusResponse
impl Default for CallbackStatusResponse
Source§fn default() -> CallbackStatusResponse
fn default() -> CallbackStatusResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallbackStatusResponse
impl<'de> Deserialize<'de> for CallbackStatusResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CallbackStatusResponse
impl Display for CallbackStatusResponse
Source§impl From<&CallbackStatusResponse> for XfsMember
impl From<&CallbackStatusResponse> for XfsMember
Source§fn from(val: &CallbackStatusResponse) -> Self
fn from(val: &CallbackStatusResponse) -> Self
Converts to this type from the input type.
Source§impl From<&CallbackStatusResponse> for XfsStruct
impl From<&CallbackStatusResponse> for XfsStruct
Source§fn from(val: &CallbackStatusResponse) -> Self
fn from(val: &CallbackStatusResponse) -> Self
Converts to this type from the input type.
Source§impl From<&CallbackStatusResponse> for XfsValue
impl From<&CallbackStatusResponse> for XfsValue
Source§fn from(val: &CallbackStatusResponse) -> Self
fn from(val: &CallbackStatusResponse) -> Self
Converts to this type from the input type.
Source§impl From<CallbackStatusResponse> for XfsMember
impl From<CallbackStatusResponse> for XfsMember
Source§fn from(val: CallbackStatusResponse) -> Self
fn from(val: CallbackStatusResponse) -> Self
Converts to this type from the input type.
Source§impl From<CallbackStatusResponse> for XfsStruct
impl From<CallbackStatusResponse> for XfsStruct
Source§fn from(val: CallbackStatusResponse) -> Self
fn from(val: CallbackStatusResponse) -> Self
Converts to this type from the input type.
Source§impl From<CallbackStatusResponse> for XfsValue
impl From<CallbackStatusResponse> for XfsValue
Source§fn from(val: CallbackStatusResponse) -> Self
fn from(val: CallbackStatusResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CallbackStatusResponse
impl PartialEq for CallbackStatusResponse
Source§impl Serialize for CallbackStatusResponse
impl Serialize for CallbackStatusResponse
Source§impl TryFrom<&XfsMember> for CallbackStatusResponse
impl TryFrom<&XfsMember> for CallbackStatusResponse
Source§impl TryFrom<&XfsStruct> for CallbackStatusResponse
impl TryFrom<&XfsStruct> for CallbackStatusResponse
Source§impl TryFrom<&XfsValue> for CallbackStatusResponse
impl TryFrom<&XfsValue> for CallbackStatusResponse
Source§impl TryFrom<XfsMember> for CallbackStatusResponse
impl TryFrom<XfsMember> for CallbackStatusResponse
Source§impl TryFrom<XfsStruct> for CallbackStatusResponse
impl TryFrom<XfsStruct> for CallbackStatusResponse
Source§impl TryFrom<XfsValue> for CallbackStatusResponse
impl TryFrom<XfsValue> for CallbackStatusResponse
impl Copy for CallbackStatusResponse
impl StructuralPartialEq for CallbackStatusResponse
Auto Trait Implementations§
impl Freeze for CallbackStatusResponse
impl RefUnwindSafe for CallbackStatusResponse
impl Send for CallbackStatusResponse
impl Sync for CallbackStatusResponse
impl Unpin for CallbackStatusResponse
impl UnwindSafe for CallbackStatusResponse
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