pub struct Command<'p, 'alloc> { /* private fields */ }Expand description
A parsed OSC (Operating System Command) command.
The command can be queried for its type and associated data.
Implementations§
Source§impl Command<'_, '_>
impl Command<'_, '_>
Sourcepub fn command_type(&self) -> CommandType
pub fn command_type(&self) -> CommandType
Get the type of an OSC command.
This can be used to determine what kind of command was parsed and what data might be available from it.
Trait Implementations§
Auto Trait Implementations§
impl<'p, 'alloc> Freeze for Command<'p, 'alloc>
impl<'p, 'alloc> RefUnwindSafe for Command<'p, 'alloc>
impl<'p, 'alloc> !Send for Command<'p, 'alloc>
impl<'p, 'alloc> !Sync for Command<'p, 'alloc>
impl<'p, 'alloc> Unpin for Command<'p, 'alloc>
impl<'p, 'alloc> UnsafeUnpin for Command<'p, 'alloc>
impl<'p, 'alloc> UnwindSafe for Command<'p, 'alloc>
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