[][src]Struct gxi::shared_queue::SharedQueue

pub struct SharedQueue {
    pub queue_rx: Arc<Mutex<SegQueue<CoreMsg>>>,
    pub queue_tx: Arc<Mutex<SegQueue<CoreMsg>>>,
}

Fields

queue_rx: Arc<Mutex<SegQueue<CoreMsg>>>queue_tx: Arc<Mutex<SegQueue<CoreMsg>>>

Methods

impl SharedQueue[src]

pub fn new() -> Self[src]

pub fn add_core_msg(&self, msg: CoreMsg)[src]

A message from xi-editor that we have to process (e.g. that we should scroll)

pub fn send_msg(&self, msg: CoreMsg)[src]

A message that we want to send to xi-editor in order for it to process it (e.g. a key stroke)

Trait Implementations

impl Clone for SharedQueue[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for SharedQueue

impl Sync for SharedQueue

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.