pub struct Signal {
name: String,
flags: SignalFlags,
param_types: Vec<SignalType>,
return_type: SignalType,
registration: Mutex<SignalRegistration>,
}
Expand description
Signal metadata.
Fields§
§name: String
§flags: SignalFlags
§param_types: Vec<SignalType>
§return_type: SignalType
§registration: Mutex<SignalRegistration>
Implementations§
source§impl Signal
impl Signal
sourcepub fn builder(name: &str) -> SignalBuilder
pub fn builder(name: &str) -> SignalBuilder
Create a new builder for a signal.
sourcepub fn flags(&self) -> SignalFlags
pub fn flags(&self) -> SignalFlags
Flags of the signal.
sourcepub fn param_types(&self) -> &[SignalType]
pub fn param_types(&self) -> &[SignalType]
Parameter types of the signal.
sourcepub fn return_type(&self) -> SignalType
pub fn return_type(&self) -> SignalType
Return type of the signal.
sourcepub fn signal_id(&self) -> SignalId
pub fn signal_id(&self) -> SignalId
Signal ID.
This will panic if called before the signal was registered.
sourcepub fn type_(&self) -> Type
pub fn type_(&self) -> Type
Type this signal was registered for.
This will panic if called before the signal was registered.
pub(super) fn register(&self, type_: Type)
Auto Trait Implementations§
impl !Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
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