pub struct ManagerProxy { /* private fields */ }Implementations§
Source§impl ManagerProxy
impl ManagerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.session.window/Manager.
Sourcepub fn take_event_stream(&self) -> ManagerEventStream
pub fn take_event_stream(&self) -> ManagerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn list(
&self,
) -> QueryResponseFut<Vec<ListedView>, DefaultFuchsiaResourceDialect> ⓘ
pub fn list( &self, ) -> QueryResponseFut<Vec<ListedView>, DefaultFuchsiaResourceDialect> ⓘ
List ids of all views in the order they are being presented.
Sourcepub fn set_order(
&self,
old_position: u64,
new_position: u64,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
pub fn set_order( &self, old_position: u64, new_position: u64, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
Moves the view at the given old_position to the given new_position.
Items in between are shifted and all other views keep their same relative order.
Window Manager expects both positions to be within the range of the length of
views currently presented. If invalid args are provided, the command will not
execute and an error message will be logged.
Sourcepub fn cycle(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
pub fn cycle(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
Shifts all views forward by one position, view at position 0 is moved to the end.
Sourcepub fn focus(
&self,
position: u64,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
pub fn focus( &self, position: u64, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
Sets keyboard focus to the view at position and makes that view visible.
Trait Implementations§
Source§impl Clone for ManagerProxy
impl Clone for ManagerProxy
Source§impl Debug for ManagerProxy
impl Debug for ManagerProxy
Source§impl ManagerProxyInterface for ManagerProxy
impl ManagerProxyInterface for ManagerProxy
type ListResponseFut = QueryResponseFut<Vec<ListedView>>
type SetOrderResponseFut = QueryResponseFut<()>
type CycleResponseFut = QueryResponseFut<()>
type FocusResponseFut = QueryResponseFut<()>
fn list(&self) -> Self::ListResponseFut
fn set_order( &self, old_position: u64, new_position: u64, ) -> Self::SetOrderResponseFut
fn cycle(&self) -> Self::CycleResponseFut
fn focus(&self, position: u64) -> Self::FocusResponseFut
Source§impl Proxy for ManagerProxy
impl Proxy for ManagerProxy
Source§type Protocol = ManagerMarker
type Protocol = ManagerMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ManagerProxy
impl !UnwindSafe for ManagerProxy
impl Freeze for ManagerProxy
impl Send for ManagerProxy
impl Sync for ManagerProxy
impl Unpin for ManagerProxy
impl UnsafeUnpin for ManagerProxy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.