pub struct SERVICE_STATE(/* private fields */);
Available on crate features
kernel
and advapi
only.Expand description
HSERVICESTATUS::SetServiceStatus
current_state
(u32)
Implementations§
Source§impl SERVICE_STATE
impl SERVICE_STATE
Sourcepub const unsafe fn as_mut(&mut self) -> &mut u32
pub const unsafe fn as_mut(&mut self) -> &mut u32
Returns a mutable reference to the underlying raw value.
§Safety
Be sure the integer being set is meaningful for the actual type.
Sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
Sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
Source§impl SERVICE_STATE
impl SERVICE_STATE
pub const CONTINUE_PENDING: Self
pub const PAUSE_PENDING: Self
pub const PAUSED: Self
pub const RUNNING: Self
pub const START_PENDING: Self
pub const STOP_PENDING: Self
pub const STOPPED: Self
Trait Implementations§
Source§impl AsRef<u32> for SERVICE_STATE
impl AsRef<u32> for SERVICE_STATE
Source§impl Binary for SERVICE_STATE
impl Binary for SERVICE_STATE
Source§impl Clone for SERVICE_STATE
impl Clone for SERVICE_STATE
Source§fn clone(&self) -> SERVICE_STATE
fn clone(&self) -> SERVICE_STATE
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SERVICE_STATE
impl Debug for SERVICE_STATE
Source§impl Default for SERVICE_STATE
impl Default for SERVICE_STATE
Source§fn default() -> SERVICE_STATE
fn default() -> SERVICE_STATE
Returns the “default value” for a type. Read more
Source§impl Display for SERVICE_STATE
impl Display for SERVICE_STATE
Source§impl From<SERVICE_STATE> for u32
impl From<SERVICE_STATE> for u32
Source§fn from(v: SERVICE_STATE) -> Self
fn from(v: SERVICE_STATE) -> Self
Converts to this type from the input type.
Source§impl Hash for SERVICE_STATE
impl Hash for SERVICE_STATE
Source§impl LowerHex for SERVICE_STATE
impl LowerHex for SERVICE_STATE
Source§impl Octal for SERVICE_STATE
impl Octal for SERVICE_STATE
Source§impl Ord for SERVICE_STATE
impl Ord for SERVICE_STATE
Source§impl PartialEq for SERVICE_STATE
impl PartialEq for SERVICE_STATE
Source§impl PartialOrd for SERVICE_STATE
impl PartialOrd for SERVICE_STATE
Source§impl UpperHex for SERVICE_STATE
impl UpperHex for SERVICE_STATE
impl Copy for SERVICE_STATE
impl Eq for SERVICE_STATE
impl StructuralPartialEq for SERVICE_STATE
Auto Trait Implementations§
impl Freeze for SERVICE_STATE
impl RefUnwindSafe for SERVICE_STATE
impl Send for SERVICE_STATE
impl Sync for SERVICE_STATE
impl Unpin for SERVICE_STATE
impl UnwindSafe for SERVICE_STATE
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