pub struct AmxSession { /* private fields */ }Expand description
A session guard that manages AMX tile configuration lifecycle on the current thread.
Implementations§
Source§impl AmxSession
impl AmxSession
Sourcepub fn is_active() -> bool
pub fn is_active() -> bool
Returns true if an AMX session is currently active on the executing thread.
Sourcepub fn new(config: &AmxConfig) -> Result<AmxSession, AmxSessionError>
pub fn new(config: &AmxConfig) -> Result<AmxSession, AmxSessionError>
Enter a new AMX compute phase with the given configuration.
Trait Implementations§
Source§impl Drop for AmxSession
impl Drop for AmxSession
Auto Trait Implementations§
impl Freeze for AmxSession
impl RefUnwindSafe for AmxSession
impl Send for AmxSession
impl Sync for AmxSession
impl Unpin for AmxSession
impl UnsafeUnpin for AmxSession
impl UnwindSafe for AmxSession
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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