/// Creates the basic FIDL Event object containing the event type, target_realm
/// and basic handler for resumption.
Creates the basic FIDL Event object containing the event type, target_realm
and basic handler for resumption.
Creates the basic FIDL Event object containing the event type target_realm and basic handler for resumption .
fn create_event_fidl_object(event: Event) -> Result<fsys::Event, fidl::Error> {
    let event_type = Some(event.event.payload.type_().into());
    let target_relative_moniker =
        RelativeMoniker::from_absolute(&event.scope_moniker, &event.event.target_moniker);
    let target_moniker = Some(target_relative_moniker.to_string());
    let event_payload = maybe_create_event_payload(&event.scope_moniker, &event.event.payload)?;
    let handler = maybe_serve_handler_async(event);
    Ok(fsys::Event { event_type, target_moniker, handler, event_payload })
}
fn create_event_fidl_object ( event : Event ) -> Result < fsys :: Event , fidl :: Error > { let event_type = Some ( event . event . payload . type_ ( ) . into ( ) ) ; let target_relative_moniker = RelativeMoniker :: from_absolute ( & event . scope_moniker , & event . event . target_moniker ) ; let target_moniker = Some ( target_relative_moniker . to_string ( ) ) ; let event_payload = maybe_create_event_payload ( & event . scope_moniker , & event . event . payload ) ? ; let handler = maybe_serve_handler_async ( event ) ; Ok ( fsys :: Event { event_type , target_moniker , handler , event_payload } ) }
Creates the basic FIDL Event object containing the event type, target_realm
and basic handler for resumption.
Creates the basic FIDL Event object containing the event type target_realm and basic handler for resumption .
event
Event