#[repr(C)]pub struct XfsMethodCall { /* private fields */ }
Expand description
Represents an XFS method call containing a list of params.
Implementations§
Source§impl XfsMethodCall
impl XfsMethodCall
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new XfsMethodCall.
Sourcepub fn create<P: Into<Vec<XfsParam>>>(name: XfsMethodName, params: P) -> Self
pub fn create<P: Into<Vec<XfsParam>>>(name: XfsMethodName, params: P) -> Self
Creates a new XfsMethodCall with the provided parameters.
Sourcepub fn name(&self) -> Result<XfsMethodName>
pub fn name(&self) -> Result<XfsMethodName>
Gets the name.
Returns:
Ok(XfsMethodName)
if XfsMethodCall has a valid XfsMethodName set.Err(_)
otherwise
Sourcepub fn set_name(&mut self, name: XfsMethodName)
pub fn set_name(&mut self, name: XfsMethodName)
Sets the name.
Sourcepub fn with_name(self, name: XfsMethodName) -> Self
pub fn with_name(self, name: XfsMethodName) -> Self
Builder function that sets the name.
Sourcepub fn set_params(&mut self, params: XfsParams)
pub fn set_params(&mut self, params: XfsParams)
Sets the params.
Sourcepub fn with_params(self, params: XfsParams) -> Self
pub fn with_params(self, params: XfsParams) -> Self
Builder function that sets the params.
Sourcepub fn is_async(&self) -> bool
pub fn is_async(&self) -> bool
Gets whether the XfsMethodCall is asynchronous.
Multiple asynchronous calls are illegal
, and will fail after the initial call.
Sourcepub fn call_id(&self) -> Result<i32>
pub fn call_id(&self) -> Result<i32>
Gets the async callback ID from the XfsMethodCall.
Returns: Ok(i32)
on success, Err(Error)
on failure
Sourcepub fn operation_id(&self) -> Result<OperationId>
pub fn operation_id(&self) -> Result<OperationId>
Gets the async operation ID from the XfsMethodCall.
Returns: Ok(OperationId)
on success, Err(Error)
on failure
Sourcepub fn result(&self) -> Result<i32>
pub fn result(&self) -> Result<i32>
Gets the async operation result from the XfsMethodCall.
Returns: Ok(OperationId)
on success, Err(Error)
on failure
Sourcepub fn ext_result(&self) -> Result<i32>
pub fn ext_result(&self) -> Result<i32>
Gets the async operation extended result from the XfsMethodCall.
Returns: Ok(OperationId)
on success, Err(Error)
on failure
Sourcepub fn xfs_struct(&self) -> Result<XfsStruct>
pub fn xfs_struct(&self) -> Result<XfsStruct>
Gets the async operation XfsStruct parameter from the XfsMethodCall.
Returns: Ok(OperationId)
on success, Err(Error)
on failure
Trait Implementations§
Source§impl Clone for XfsMethodCall
impl Clone for XfsMethodCall
Source§fn clone(&self) -> XfsMethodCall
fn clone(&self) -> XfsMethodCall
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more