Honoring Asian Pacific American Heritage Month. See how.

serve method

*[<Null safety>](https://dart.dev/null-safety)*

int serve (InterfaceRequest request, {dynamic rights})

Serves this request directory over request channel. Caller may specify the rights granted to the request connection. If rights is omitted, it defaults to readable and writable.

Implementation

int serve(fidl.InterfaceRequest<Node> request, {OpenFlags? rights}) {
  if (rights != null) {
    assert((rights & ~openRights) == OpenFlags.$none);
  }
  rights ??= OpenFlags.rightReadable | OpenFlags.rightWritable;
  return connect(OpenFlags.directory | rights, 0, request);
}