pub struct Terminal<'a, E: Clone + Debug> { /* private fields */ }Expand description
A place where a device can connect to another.
Implementations§
Source§impl<E: Clone + Debug> Terminal<'_, E>
impl<E: Clone + Debug> Terminal<'_, E>
Sourcepub const fn new_raw() -> Self
pub const fn new_raw() -> Self
Direct constructor for a Terminal. You almost always actually want RefCell<Terminal>
however, in which case you should call new, which returns RefCell<Terminal>.
Sourcepub const fn new() -> RefCell<Self>
pub const fn new() -> RefCell<Self>
This constructs a RefCell<Terminal>. This is almost always what you want, and what is
needed for connecting terminals. If you do just want a Terminal, use
new_raw instead.
Sourcepub fn disconnect(&mut self)
pub fn disconnect(&mut self)
Disconnect this terminal and the one that it is connected to. You can connect terminals by
calling the rrtk::connect function.
Trait Implementations§
Source§impl<E: Clone + Debug> Getter<TerminalData, E> for Terminal<'_, E>
impl<E: Clone + Debug> Getter<TerminalData, E> for Terminal<'_, E>
Source§fn get(&self) -> Output<TerminalData, E>
fn get(&self) -> Output<TerminalData, E>
Get something.
Auto Trait Implementations§
impl<'a, E> Freeze for Terminal<'a, E>
impl<'a, E> !RefUnwindSafe for Terminal<'a, E>
impl<'a, E> !Send for Terminal<'a, E>
impl<'a, E> !Sync for Terminal<'a, E>
impl<'a, E> Unpin for Terminal<'a, E>
impl<'a, E> !UnwindSafe for Terminal<'a, E>
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