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

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


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


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)

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>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

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

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.