Struct docuglot::Tongue [−][src]
An interface to all Language Servers.
SHALL execute the following:
- handle the initialization of the appropriate langugage server(s) when they are needed.
- provide access to produce
Transmission
s by converting them into messages and sending them to the appropriate language server.
Following the precedent set by market::process::Process
, Tongue
shall impl Consumer
of its status, while providing references to the input and output actors.
"Tongue" refers to the ability of this item to be a tool that is used to communicate in multiple languages, just as a human tongue.
Implementations
impl Tongue
[src]
#[must_use]pub fn new(root_dir: &Url) -> Self
[src]
Creates a new Tongue
.
#[must_use]pub const fn thread(&self) -> &Thread<(), TranslationError>
[src]
Returns a reference to the thead.
#[must_use]pub const fn transmitter(&self) -> &CrossbeamProducer<Transmission>
[src]
Returns a reference to the Transmission
Producer
.
#[must_use]pub const fn receiver(&self) -> &CrossbeamConsumer<Reception>
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Tongue
impl Send for Tongue
impl Sync for Tongue
impl Unpin for Tongue
impl !UnwindSafe for Tongue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<P, C> AssembleInto<C> for P where
C: AssembleFrom<P>,
[src]
C: AssembleFrom<P>,
type Error = <C as AssembleFrom<P>>::Error
Describes an error with the parts. Read more
pub fn assemble_into(
parts: &mut Vec<P, Global>
) -> Result<C, AssembleFailure<<P as AssembleInto<C>>::Error>>
[src]
parts: &mut Vec<P, Global>
) -> Result<C, AssembleFailure<<P as AssembleInto<C>>::Error>>
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<P, C> DisassembleInto<P> for C where
P: DisassembleFrom<C>,
[src]
P: DisassembleFrom<C>,
type Error = <P as DisassembleFrom<C>>::Error
Describes an error that prevents disassembly.
pub fn disassemble_into(
self
) -> Result<Vec<P, Global>, <C as DisassembleInto<P>>::Error>
[src]
self
) -> Result<Vec<P, Global>, <C as DisassembleInto<P>>::Error>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,