pub enum Command {
Show 58 variants
CreateResource(CreateResourceCmd),
ReleaseResource(ReleaseResourceCmd),
ExportResource(ExportResourceCmdDeprecated),
ImportResource(ImportResourceCmdDeprecated),
SetTag(SetTagCmd),
Detach(DetachCmd),
SetTranslation(SetTranslationCmd),
SetScale(SetScaleCmd),
SetRotation(SetRotationCmd),
SetAnchor(SetAnchorCmd),
SetSize(SetSizeCmd),
SetOpacity(SetOpacityCmd),
SendSizeChangeHintHack(SendSizeChangeHintCmdHack),
AddChild(AddChildCmd),
AddPart(AddPartCmd),
DetachChildren(DetachChildrenCmd),
SetShape(SetShapeCmd),
SetMaterial(SetMaterialCmd),
SetClip(SetClipCmd),
SetHitTestBehavior(SetHitTestBehaviorCmd),
SetViewProperties(SetViewPropertiesCmd),
TakeSnapshotCmd(TakeSnapshotCmdDeprecated),
SetCamera(SetCameraCmd),
SetCameraTransform(SetCameraTransformCmd),
SetCameraProjection(SetCameraProjectionCmd),
SetStereoCameraProjection(SetStereoCameraProjectionCmd),
SetCameraPoseBuffer(SetCameraPoseBufferCmd),
SetLightColor(SetLightColorCmd),
SetLightDirection(SetLightDirectionCmd),
AddLight(AddLightCmd),
DetachLight(DetachLightCmd),
DetachLights(DetachLightsCmd),
SetTexture(SetTextureCmd),
SetColor(SetColorCmd),
BindMeshBuffers(BindMeshBuffersCmd),
AddLayer(AddLayerCmd),
RemoveLayer(RemoveLayerCmd),
RemoveAllLayers(RemoveAllLayersCmd),
SetLayerStack(SetLayerStackCmd),
SetRenderer(SetRendererCmd),
SetRendererParam(SetRendererParamCmd),
SetEventMask(SetEventMaskCmd),
SetLabel(SetLabelCmd),
SetDisableClipping(SetDisableClippingCmd),
SetImportFocus(SetImportFocusCmdDeprecated),
SetClipPlanes(SetClipPlanesCmd),
SetPointLightPosition(SetPointLightPositionCmd),
SetPointLightFalloff(SetPointLightFalloffCmd),
Scene_AddAmbientLight(SceneAddAmbientLightCmd),
Scene_AddDirectionalLight(SceneAddDirectionalLightCmd),
Scene_AddPointLight(SceneAddPointLightCmd),
SetDisplayColorConversion(SetDisplayColorConversionCmdHack),
SetDisplayRotation(SetDisplayRotationCmdHack),
SetEnableViewDebugBounds(SetEnableDebugViewBoundsCmd),
SetViewHolderBoundsColor(SetViewHolderBoundsColorCmd),
SetCameraClipSpaceTransform(SetCameraClipSpaceTransformCmd),
SetDisplayMinimumRgb(SetDisplayMinimumRgbCmdHack),
SetSemanticVisibility(SetSemanticVisibilityCmd),
}
Expand description
Commands that are used to modify the state of a Session
.
Variants§
CreateResource(CreateResourceCmd)
ReleaseResource(ReleaseResourceCmd)
ExportResource(ExportResourceCmdDeprecated)
ImportResource(ImportResourceCmdDeprecated)
SetTag(SetTagCmd)
Tagging commands.
Detach(DetachCmd)
Grouping commands.
SetTranslation(SetTranslationCmd)
Spatial commands.
SetScale(SetScaleCmd)
SetRotation(SetRotationCmd)
SetAnchor(SetAnchorCmd)
SetSize(SetSizeCmd)
SetOpacity(SetOpacityCmd)
SendSizeChangeHintHack(SendSizeChangeHintCmdHack)
AddChild(AddChildCmd)
Node-specific commands.
AddPart(AddPartCmd)
re-parenting?
DetachChildren(DetachChildrenCmd)
SetShape(SetShapeCmd)
SetMaterial(SetMaterialCmd)
SetClip(SetClipCmd)
SetHitTestBehavior(SetHitTestBehaviorCmd)
SetViewProperties(SetViewPropertiesCmd)
TakeSnapshotCmd(TakeSnapshotCmdDeprecated)
SetCamera(SetCameraCmd)
Camera and lighting commands.
SetCameraTransform(SetCameraTransformCmd)
SetCameraProjection(SetCameraProjectionCmd)
SetStereoCameraProjection(SetStereoCameraProjectionCmd)
SetCameraPoseBuffer(SetCameraPoseBufferCmd)
SetLightColor(SetLightColorCmd)
SetLightDirection(SetLightDirectionCmd)
AddLight(AddLightCmd)
DetachLight(DetachLightCmd)
DetachLights(DetachLightsCmd)
SetTexture(SetTextureCmd)
SetColor(SetColorCmd)
BindMeshBuffers(BindMeshBuffersCmd)
Mesh commands.
AddLayer(AddLayerCmd)
Layer and renderer commands.
RemoveLayer(RemoveLayerCmd)
RemoveAllLayers(RemoveAllLayersCmd)
SetLayerStack(SetLayerStackCmd)
SetRenderer(SetRendererCmd)
SetRendererParam(SetRendererParamCmd)
SetEventMask(SetEventMaskCmd)
Events.
SetLabel(SetLabelCmd)
Diagnostic commands.
SetDisableClipping(SetDisableClippingCmd)
Debugging commands.
SetImportFocus(SetImportFocusCmdDeprecated)
SetClipPlanes(SetClipPlanesCmd)
SetPointLightPosition(SetPointLightPositionCmd)
SetPointLightFalloff(SetPointLightFalloffCmd)
Scene_AddAmbientLight(SceneAddAmbientLightCmd)
Scene_AddDirectionalLight(SceneAddDirectionalLightCmd)
Scene_AddPointLight(SceneAddPointLightCmd)
SetDisplayColorConversion(SetDisplayColorConversionCmdHack)
SetDisplayRotation(SetDisplayRotationCmdHack)
SetEnableViewDebugBounds(SetEnableDebugViewBoundsCmd)
SetViewHolderBoundsColor(SetViewHolderBoundsColorCmd)
SetCameraClipSpaceTransform(SetCameraClipSpaceTransformCmd)
SetDisplayMinimumRgb(SetDisplayMinimumRgbCmdHack)
SetSemanticVisibility(SetSemanticVisibilityCmd)
Implementations§
Trait Implementations§
Source§impl Decode<Command, DefaultFuchsiaResourceDialect> for Command
impl Decode<Command, DefaultFuchsiaResourceDialect> for Command
Source§impl ResourceTypeMarker for Command
impl ResourceTypeMarker for Command
Source§type Borrowed<'a> = &'a mut Command
type Borrowed<'a> = &'a mut Command
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&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 Command
impl TypeMarker for Command
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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 more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
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.impl Standalone<DefaultFuchsiaResourceDialect> for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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