#[non_exhaustive]pub enum SignalData<'a> {
String(Cow<'a, str>),
Integer(i32),
Buffer(Buffer<'a>),
}
Expand description
Enum over the different data types a signal may send.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(Cow<'a, str>)
String data
Integer(i32)
Integer data
Buffer(Buffer<'a>)
Buffer that was sent with the signal.
Trait Implementations§
Source§impl<'a> Into<SignalData<'a>> for &'a Buffer<'a>
impl<'a> Into<SignalData<'a>> for &'a Buffer<'a>
Source§fn into(self) -> SignalData<'a>
fn into(self) -> SignalData<'a>
Converts this type into the (usually inferred) input type.
Source§impl<'a> Into<SignalData<'a>> for &'a str
impl<'a> Into<SignalData<'a>> for &'a str
Source§fn into(self) -> SignalData<'a>
fn into(self) -> SignalData<'a>
Converts this type into the (usually inferred) input type.
Source§impl<'a> Into<SignalData<'a>> for Buffer<'a>
impl<'a> Into<SignalData<'a>> for Buffer<'a>
Source§fn into(self) -> SignalData<'a>
fn into(self) -> SignalData<'a>
Converts this type into the (usually inferred) input type.
Source§impl<'a> Into<SignalData<'a>> for String
impl<'a> Into<SignalData<'a>> for String
Source§fn into(self) -> SignalData<'a>
fn into(self) -> SignalData<'a>
Converts this type into the (usually inferred) input type.
Source§impl<'a> Into<SignalData<'a>> for i32
impl<'a> Into<SignalData<'a>> for i32
Source§fn into(self) -> SignalData<'a>
fn into(self) -> SignalData<'a>
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<'a> Freeze for SignalData<'a>
impl<'a> !RefUnwindSafe for SignalData<'a>
impl<'a> !Send for SignalData<'a>
impl<'a> !Sync for SignalData<'a>
impl<'a> Unpin for SignalData<'a>
impl<'a> !UnwindSafe for SignalData<'a>
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