pub struct ViewBoundProtocols {
pub view_ref_focused: Option<ServerEnd<ViewRefFocusedMarker>>,
pub view_focuser: Option<ServerEnd<FocuserMarker>>,
pub touch_source: Option<ServerEnd<TouchSourceMarker>>,
pub mouse_source: Option<ServerEnd<MouseSourceMarker>>,
/* private fields */
}
Expand description
The protocol endpoints bound to a Flatland ViewCreationToken. These protocols operate on the View that ViewCreationToken created in the Flatland session.
Fields§
§view_ref_focused: Option<ServerEnd<ViewRefFocusedMarker>>
Learn when a View gains focus.
Server-bound ViewRef. The [view_ref_focused
] client does not specify the ViewRef
explicitly; instead, the server implementation uses the ViewRef used in View creation for
reporting focus movement on/off this View.
view_focuser: Option<ServerEnd<FocuserMarker>>
Enable a View to request focus transfer to a child (target) View.
Server-bound ViewRef. The [view_focuser
] client does not specify the “requestor” ViewRef
explicitly, only the “target” ViewRef. Instead, the server implementation uses the ViewRef
used in View creation as the “requestor” ViewRef.
touch_source: Option<ServerEnd<TouchSourceMarker>>
Receive touch events that are associated with a View.
mouse_source: Option<ServerEnd<MouseSourceMarker>>
Receive mouse events that are associated with a View.
Trait Implementations§
Source§impl Debug for ViewBoundProtocols
impl Debug for ViewBoundProtocols
Source§impl Decode<ViewBoundProtocols, DefaultFuchsiaResourceDialect> for ViewBoundProtocols
impl Decode<ViewBoundProtocols, DefaultFuchsiaResourceDialect> for ViewBoundProtocols
Source§fn new_empty() -> ViewBoundProtocols
fn new_empty() -> ViewBoundProtocols
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl Default for ViewBoundProtocols
impl Default for ViewBoundProtocols
Source§fn default() -> ViewBoundProtocols
fn default() -> ViewBoundProtocols
Source§impl PartialEq for ViewBoundProtocols
impl PartialEq for ViewBoundProtocols
Source§impl ResourceTypeMarker for ViewBoundProtocols
impl ResourceTypeMarker for ViewBoundProtocols
Source§type Borrowed<'a> = &'a mut ViewBoundProtocols
type Borrowed<'a> = &'a mut ViewBoundProtocols
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <ViewBoundProtocols as TypeMarker>::Owned,
) -> <ViewBoundProtocols as ResourceTypeMarker>::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <ViewBoundProtocols as TypeMarker>::Owned, ) -> <ViewBoundProtocols as ResourceTypeMarker>::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for ViewBoundProtocols
impl TypeMarker for ViewBoundProtocols
Source§type Owned = ViewBoundProtocols
type Owned = ViewBoundProtocols
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.