#[repr(C)]pub struct XfsFault { /* private fields */ }
Expand description
Represents an XFS fault
entry in an
XfsMethodResponse.
Implementations§
Source§impl XfsFault
impl XfsFault
Sourcepub fn create<S: Into<String>>(code: i32, string: S) -> Self
pub fn create<S: Into<String>>(code: i32, string: S) -> Self
Creates a new XfsFault with the provided fault code.
Sourcepub fn fault_string(&self) -> &str
pub fn fault_string(&self) -> &str
Gets the fault string value.
Sourcepub fn set_fault_string<S: Into<String>>(&mut self, string: S)
pub fn set_fault_string<S: Into<String>>(&mut self, string: S)
Sets the fault code value.
Sourcepub fn with_fault_string<S: Into<String>>(self, string: S) -> Self
pub fn with_fault_string<S: Into<String>>(self, string: S) -> Self
Builder function that sets the fault code value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XfsFault
impl<'de> Deserialize<'de> for XfsFault
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
impl StructuralPartialEq for XfsFault
Auto Trait Implementations§
impl Freeze for XfsFault
impl RefUnwindSafe for XfsFault
impl Send for XfsFault
impl Sync for XfsFault
impl Unpin for XfsFault
impl UnwindSafe for XfsFault
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