pub struct ClipboardSignal<'buffer> {
pub keyboard: Address,
pub text: &'buffer str,
pub player: Option<&'buffer str>,
}
Expand description
Information about a clipboard paste signal.
Fields§
§keyboard: Address
The address of the keyboard component.
text: &'buffer str
The text that was pasted.
player: Option<&'buffer str>
The name of the player who pasted the text.
This is None
if reporting of player names is disabled in the mod configuration.
Implementations§
Trait Implementations§
Source§impl<'buffer> Clone for ClipboardSignal<'buffer>
impl<'buffer> Clone for ClipboardSignal<'buffer>
Source§fn clone(&self) -> ClipboardSignal<'buffer>
fn clone(&self) -> ClipboardSignal<'buffer>
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<'buffer> Debug for ClipboardSignal<'buffer>
impl<'buffer> Debug for ClipboardSignal<'buffer>
Source§impl<'bytes: 'buffer, 'buffer, Ctx> Decode<'bytes, Ctx> for ClipboardSignal<'buffer>
impl<'bytes: 'buffer, 'buffer, Ctx> Decode<'bytes, Ctx> for ClipboardSignal<'buffer>
Source§impl<'buffer> Hash for ClipboardSignal<'buffer>
impl<'buffer> Hash for ClipboardSignal<'buffer>
Source§impl<'buffer> Ord for ClipboardSignal<'buffer>
impl<'buffer> Ord for ClipboardSignal<'buffer>
Source§fn cmp(&self, other: &ClipboardSignal<'buffer>) -> Ordering
fn cmp(&self, other: &ClipboardSignal<'buffer>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'buffer> PartialEq for ClipboardSignal<'buffer>
impl<'buffer> PartialEq for ClipboardSignal<'buffer>
Source§impl<'buffer> PartialOrd for ClipboardSignal<'buffer>
impl<'buffer> PartialOrd for ClipboardSignal<'buffer>
impl<'buffer> Eq for ClipboardSignal<'buffer>
impl<'buffer> StructuralPartialEq for ClipboardSignal<'buffer>
Auto Trait Implementations§
impl<'buffer> Freeze for ClipboardSignal<'buffer>
impl<'buffer> RefUnwindSafe for ClipboardSignal<'buffer>
impl<'buffer> Send for ClipboardSignal<'buffer>
impl<'buffer> Sync for ClipboardSignal<'buffer>
impl<'buffer> Unpin for ClipboardSignal<'buffer>
impl<'buffer> UnwindSafe for ClipboardSignal<'buffer>
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