pub struct MicroControlPermit { /* private fields */ }Expand description
Разрешение на микро-контроль
Implementations§
Source§impl MicroControlPermit
impl MicroControlPermit
Sourcepub fn is_allowed(&self) -> bool
pub fn is_allowed(&self) -> bool
Проверить, можно ли использовать микро-контроль
Sourcepub fn max_time_ns(&self) -> u64
pub fn max_time_ns(&self) -> u64
Получить максимальное время обработки
Trait Implementations§
Source§impl Clone for MicroControlPermit
impl Clone for MicroControlPermit
Source§fn clone(&self) -> MicroControlPermit
fn clone(&self) -> MicroControlPermit
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MicroControlPermit
impl RefUnwindSafe for MicroControlPermit
impl Send for MicroControlPermit
impl Sync for MicroControlPermit
impl Unpin for MicroControlPermit
impl UnsafeUnpin for MicroControlPermit
impl UnwindSafe for MicroControlPermit
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