#[repr(C)]pub struct TerminalResponse {
pub revision: u64,
pub terminal_count: u64,
pub terminals: *const *const Terminal,
pub write: TerminalWriteFn,
}Expand description
Response to [TerminalRequest]
Fields§
§revision: u64The response revision number
terminal_count: u64The number of Terminals in terminals
terminals: *const *const TerminalA pointer to an array of Terminal pointers
write: TerminalWriteFnThe terminal write function
§Important
It must be noted that this is the physical address of the write function
Implementations§
Source§impl TerminalResponse
impl TerminalResponse
Sourcepub unsafe fn get_terminals(&self) -> Option<&[&Terminal]>
pub unsafe fn get_terminals(&self) -> Option<&[&Terminal]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TerminalResponse
impl RefUnwindSafe for TerminalResponse
impl !Send for TerminalResponse
impl !Sync for TerminalResponse
impl Unpin for TerminalResponse
impl UnwindSafe for TerminalResponse
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