Struct jcm::EscrowEvent
source · #[repr(C)]pub struct EscrowEvent { /* private fields */ }Expand description
Represents an inhibit event.
Implementations§
source§impl EscrowEvent
impl EscrowEvent
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new EscrowEvent.
sourcepub const fn create(event_type: EventType, data: EscrowData) -> Self
pub const fn create(event_type: EventType, data: EscrowData) -> Self
Creates a new EscrowEvent from the provided parameters.
sourcepub const fn message_type(&self) -> MessageType
pub const fn message_type(&self) -> MessageType
Gets the MessageType of the EscrowEvent.
sourcepub const fn event_type(&self) -> EventType
pub const fn event_type(&self) -> EventType
Gets the EventType of the EscrowEvent.
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 EscrowEvent.
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 EscrowEvent.
sourcepub const fn message_code(&self) -> MessageCode
pub const fn message_code(&self) -> MessageCode
Gets the MessageCode of the EscrowEvent.
sourcepub const fn event_code(&self) -> EventCode
pub const fn event_code(&self) -> EventCode
Gets the EventCode of the EscrowEvent.
sourcepub const fn data(&self) -> &EscrowData
pub const fn data(&self) -> &EscrowData
Gets a reference to the EscrowData of the EscrowEvent.
Trait Implementations§
source§impl Clone for EscrowEvent
impl Clone for EscrowEvent
source§fn clone(&self) -> EscrowEvent
fn clone(&self) -> EscrowEvent
Returns a copy 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 EscrowEvent
impl Debug for EscrowEvent
source§impl Default for EscrowEvent
impl Default for EscrowEvent
source§impl From<&EscrowEvent> for Message
impl From<&EscrowEvent> for Message
source§fn from(val: &EscrowEvent) -> Self
fn from(val: &EscrowEvent) -> Self
Converts to this type from the input type.
source§impl From<&EscrowEvent> for MessageData
impl From<&EscrowEvent> for MessageData
source§fn from(val: &EscrowEvent) -> Self
fn from(val: &EscrowEvent) -> Self
Converts to this type from the input type.
source§impl From<EscrowEvent> for Message
impl From<EscrowEvent> for Message
source§fn from(val: EscrowEvent) -> Self
fn from(val: EscrowEvent) -> Self
Converts to this type from the input type.
source§impl From<EscrowEvent> for MessageData
impl From<EscrowEvent> for MessageData
source§fn from(val: EscrowEvent) -> Self
fn from(val: EscrowEvent) -> Self
Converts to this type from the input type.
source§impl PartialEq for EscrowEvent
impl PartialEq for EscrowEvent
source§fn eq(&self, other: &EscrowEvent) -> bool
fn eq(&self, other: &EscrowEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&Message> for EscrowEvent
impl TryFrom<&Message> for EscrowEvent
source§impl TryFrom<&MessageData> for EscrowEvent
impl TryFrom<&MessageData> for EscrowEvent
source§impl TryFrom<Message> for EscrowEvent
impl TryFrom<Message> for EscrowEvent
source§impl TryFrom<MessageData> for EscrowEvent
impl TryFrom<MessageData> for EscrowEvent
impl StructuralPartialEq for EscrowEvent
Auto Trait Implementations§
impl Freeze for EscrowEvent
impl RefUnwindSafe for EscrowEvent
impl Send for EscrowEvent
impl Sync for EscrowEvent
impl Unpin for EscrowEvent
impl UnwindSafe for EscrowEvent
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