pub struct Params { /* private fields */ }Expand description
A safe wrapper around NIXL parameters
Implementations§
Source§impl Params
impl Params
Sourcepub fn set(&mut self, key: &str, value: &str) -> Result<(), NixlError>
pub fn set(&mut self, key: &str, value: &str) -> Result<(), NixlError>
Sets a key-value pair in the parameters (overwrites if exists)
Sourcepub fn iter(&self) -> Result<ParamIterator<'_>, NixlError>
pub fn iter(&self) -> Result<ParamIterator<'_>, NixlError>
Returns an iterator over the parameter key-value pairs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl !Send for Params
impl !Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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