pub struct InhibitEvent { /* private fields */ }Expand description
Represents an inhibit event.
Implementations§
Source§impl InhibitEvent
impl InhibitEvent
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new InhibitEvent.
Sourcepub const fn create(event_type: EventType) -> Self
pub const fn create(event_type: EventType) -> Self
Creates a new InhibitEvent from the provided parameter.
Sourcepub const fn message_type(&self) -> MessageType
pub const fn message_type(&self) -> MessageType
Gets the MessageType of the InhibitEvent.
Sourcepub const fn event_type(&self) -> EventType
pub const fn event_type(&self) -> EventType
Gets the EventType of the InhibitEvent.
Sourcepub fn set_event_type(&mut self, event_type: EventType)
pub fn set_event_type(&mut self, event_type: EventType)
Sets the EventType of the InhibitEvent.
Sourcepub fn with_event_type(self, event_type: EventType) -> Self
pub fn with_event_type(self, event_type: EventType) -> Self
Builder function that sets the EventType of the InhibitEvent.
Sourcepub const fn message_code(&self) -> MessageCode
pub const fn message_code(&self) -> MessageCode
Gets the MessageCode of the InhibitEvent.
Sourcepub const fn event_code(&self) -> EventCode
pub const fn event_code(&self) -> EventCode
Gets the EventCode of the InhibitEvent.
Trait Implementations§
Source§impl Clone for InhibitEvent
impl Clone for InhibitEvent
Source§fn clone(&self) -> InhibitEvent
fn clone(&self) -> InhibitEvent
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 moreSource§impl Debug for InhibitEvent
impl Debug for InhibitEvent
Source§impl Default for InhibitEvent
impl Default for InhibitEvent
Source§impl From<&InhibitEvent> for Message
impl From<&InhibitEvent> for Message
Source§fn from(val: &InhibitEvent) -> Self
fn from(val: &InhibitEvent) -> Self
Converts to this type from the input type.
Source§impl From<&InhibitEvent> for MessageData
impl From<&InhibitEvent> for MessageData
Source§fn from(val: &InhibitEvent) -> Self
fn from(val: &InhibitEvent) -> Self
Converts to this type from the input type.
Source§impl From<InhibitEvent> for Message
impl From<InhibitEvent> for Message
Source§fn from(val: InhibitEvent) -> Self
fn from(val: InhibitEvent) -> Self
Converts to this type from the input type.
Source§impl From<InhibitEvent> for MessageData
impl From<InhibitEvent> for MessageData
Source§fn from(val: InhibitEvent) -> Self
fn from(val: InhibitEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InhibitEvent
impl PartialEq for InhibitEvent
Source§impl TryFrom<&Message> for InhibitEvent
impl TryFrom<&Message> for InhibitEvent
Source§impl TryFrom<&MessageData> for InhibitEvent
impl TryFrom<&MessageData> for InhibitEvent
Source§impl TryFrom<Message> for InhibitEvent
impl TryFrom<Message> for InhibitEvent
Source§impl TryFrom<MessageData> for InhibitEvent
impl TryFrom<MessageData> for InhibitEvent
impl Copy for InhibitEvent
impl Eq for InhibitEvent
impl StructuralPartialEq for InhibitEvent
Auto Trait Implementations§
impl Freeze for InhibitEvent
impl RefUnwindSafe for InhibitEvent
impl Send for InhibitEvent
impl Sync for InhibitEvent
impl Unpin for InhibitEvent
impl UnwindSafe for InhibitEvent
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