pub struct TabProxy { /* private fields */ }Expand description
Proxy for a terminal tab
Implementations§
Source§impl TabProxy
impl TabProxy
pub fn new(handle: ObjectHandle) -> Result<Self>
pub fn handle(&self) -> ObjectHandle
pub fn id(&self) -> u64
Sourcepub fn active_pane<T>(
&self,
registry: &impl ObjectRegistry<T>,
) -> Result<PaneProxy>
pub fn active_pane<T>( &self, registry: &impl ObjectRegistry<T>, ) -> Result<PaneProxy>
Get active pane
This method returns the first pane in the tab. In a full implementation, this would query which pane is actually focused.
§Arguments
registry- The object registry to use for navigation
§Returns
Ok(PaneProxy)- The active pane in this tabErr(ObjectError)- If the tab has no panes or navigation fails
Sourcepub fn window<T>(
&self,
registry: &impl ObjectRegistry<T>,
) -> Result<WindowProxy>
pub fn window<T>( &self, registry: &impl ObjectRegistry<T>, ) -> Result<WindowProxy>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TabProxy
impl RefUnwindSafe for TabProxy
impl Send for TabProxy
impl Sync for TabProxy
impl Unpin for TabProxy
impl UnsafeUnpin for TabProxy
impl UnwindSafe for TabProxy
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.