pub struct StaticUnitBindings { /* private fields */ }Expand description
One pinned static module and its checkpoint bindings.
Implementations§
Source§impl StaticUnitBindings
impl StaticUnitBindings
Sourcepub fn new(
id: impl Into<String>,
bindings: Vec<WeightBinding>,
) -> Result<Self, OffloadError>
pub fn new( id: impl Into<String>, bindings: Vec<WeightBinding>, ) -> Result<Self, OffloadError>
Creates a pinned static unit definition.
Sourcepub const fn id(&self) -> &OffloadUnitId
pub const fn id(&self) -> &OffloadUnitId
Returns the stable residency identifier for this static module.
Sourcepub fn bindings(&self) -> &[WeightBinding]
pub fn bindings(&self) -> &[WeightBinding]
Returns the authoritative checkpoint bindings for this static module.
Sourcepub fn into_parts(self) -> (OffloadUnitId, Vec<WeightBinding>)
pub fn into_parts(self) -> (OffloadUnitId, Vec<WeightBinding>)
Consumes the definition into its stable identifier and checkpoint bindings.
Trait Implementations§
Source§impl Clone for StaticUnitBindings
impl Clone for StaticUnitBindings
Source§fn clone(&self) -> StaticUnitBindings
fn clone(&self) -> StaticUnitBindings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StaticUnitBindings
impl Debug for StaticUnitBindings
impl Eq for StaticUnitBindings
Source§impl PartialEq for StaticUnitBindings
impl PartialEq for StaticUnitBindings
impl StructuralPartialEq for StaticUnitBindings
Auto Trait Implementations§
impl Freeze for StaticUnitBindings
impl RefUnwindSafe for StaticUnitBindings
impl Send for StaticUnitBindings
impl Sync for StaticUnitBindings
impl Unpin for StaticUnitBindings
impl UnsafeUnpin for StaticUnitBindings
impl UnwindSafe for StaticUnitBindings
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