pub struct AtomicModeReq { /* private fields */ }
Expand description
Helper struct to construct atomic commit requests
Implementations§
source§impl AtomicModeReq
impl AtomicModeReq
sourcepub fn new() -> AtomicModeReq
pub fn new() -> AtomicModeReq
Create a new and empty atomic commit request
sourcepub fn add_raw_property(
&mut self,
obj_id: RawResourceHandle,
prop_id: Handle,
value: RawValue,
)
pub fn add_raw_property( &mut self, obj_id: RawResourceHandle, prop_id: Handle, value: RawValue, )
Add a property and value pair for a given raw resource to the request
sourcepub fn add_property<H>(&mut self, handle: H, property: Handle, value: Value<'_>)where
H: ResourceHandle,
pub fn add_property<H>(&mut self, handle: H, property: Handle, value: Value<'_>)where
H: ResourceHandle,
Add a property and value pair for a given handle to the request
Trait Implementations§
source§impl Clone for AtomicModeReq
impl Clone for AtomicModeReq
source§fn clone(&self) -> AtomicModeReq
fn clone(&self) -> AtomicModeReq
Returns a copy 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 AtomicModeReq
impl Debug for AtomicModeReq
source§impl Default for AtomicModeReq
impl Default for AtomicModeReq
source§fn default() -> AtomicModeReq
fn default() -> AtomicModeReq
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AtomicModeReq
impl RefUnwindSafe for AtomicModeReq
impl Send for AtomicModeReq
impl Sync for AtomicModeReq
impl Unpin for AtomicModeReq
impl UnwindSafe for AtomicModeReq
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)