pub struct TransferPolicy { /* private fields */ }Expand description
Cost policy for a frame transfer. require is strict and never silently falls back.
Implementations§
Source§impl TransferPolicy
impl TransferPolicy
pub const fn any() -> Self
pub const fn require(mode: TransferMode) -> Self
pub const fn with_scale_filter(self, filter: ScaleFilter) -> Self
pub const fn required(self) -> Option<TransferMode>
Trait Implementations§
Source§impl Clone for TransferPolicy
impl Clone for TransferPolicy
impl Copy for TransferPolicy
Source§impl Debug for TransferPolicy
impl Debug for TransferPolicy
Source§impl Default for TransferPolicy
impl Default for TransferPolicy
impl Eq for TransferPolicy
Source§impl PartialEq for TransferPolicy
impl PartialEq for TransferPolicy
impl StructuralPartialEq for TransferPolicy
Auto Trait Implementations§
impl Freeze for TransferPolicy
impl RefUnwindSafe for TransferPolicy
impl Send for TransferPolicy
impl Sync for TransferPolicy
impl Unpin for TransferPolicy
impl UnsafeUnpin for TransferPolicy
impl UnwindSafe for TransferPolicy
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