pub struct OptArgs { /* private fields */ }Expand description
A safe wrapper around NIXL optional arguments
Implementations§
Source§impl OptArgs
impl OptArgs
Sourcepub fn add_backend(&mut self, backend: &Backend) -> Result<(), NixlError>
pub fn add_backend(&mut self, backend: &Backend) -> Result<(), NixlError>
Add a backend to the optional arguments
Sourcepub fn set_notification_message(
&mut self,
message: &[u8],
) -> Result<(), NixlError>
pub fn set_notification_message( &mut self, message: &[u8], ) -> Result<(), NixlError>
Set the notification message
Sourcepub fn get_notification_message(&self) -> Result<Vec<u8>, NixlError>
pub fn get_notification_message(&self) -> Result<Vec<u8>, NixlError>
Get the notification message
Sourcepub fn set_has_notification(
&mut self,
has_notification: bool,
) -> Result<(), NixlError>
pub fn set_has_notification( &mut self, has_notification: bool, ) -> Result<(), NixlError>
Set whether notification is enabled
Sourcepub fn has_notification(&self) -> Result<bool, NixlError>
pub fn has_notification(&self) -> Result<bool, NixlError>
Get whether notification is enabled
Sourcepub fn set_skip_descriptor_merge(
&mut self,
skip_merge: bool,
) -> Result<(), NixlError>
pub fn set_skip_descriptor_merge( &mut self, skip_merge: bool, ) -> Result<(), NixlError>
Set whether to skip descriptor merging
Sourcepub fn skip_descriptor_merge(&self) -> Result<bool, NixlError>
pub fn skip_descriptor_merge(&self) -> Result<bool, NixlError>
Get whether descriptor merging is skipped
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptArgs
impl RefUnwindSafe for OptArgs
impl !Send for OptArgs
impl !Sync for OptArgs
impl Unpin for OptArgs
impl UnwindSafe for OptArgs
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