*<Null safety>*
A PseudoDir which will pass requests for inherited nodes to the underlying
fidl_io.Directory
.
Inherited Nodes must be specified at time of creation. Any requests to open
nodes in the inheritedNodes
list will be proxied to the provided
directory. If a request is made to a node not included in this list it will
attempt to open the node on the super class.
Inheritance
Constructors
ComposedPseudoDir ({required dynamic directory, List<String> inheritedNodes: const []})
Constructs the ComposedPseudoDir and provides a list
of inheritedServices
to proxy to the directory
.
Properties
hashCode → int
The hash code for this object. ...
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
Methods
addNode(String name, Vnode node) int
Adds a directory entry associating the given name
with node
.
It is ok to add the same Vnode multiple times with different names. ...
override
close() void
Close this node and all of its bindings and children.
inherited
connect(int flags, int mode, InterfaceRequest request, [int parentFlags = Flags.fsRights]) int
Connects to this instance of PseudoDir and serves
fushsia.io.Directory
over fidl.
inherited
filterForNodeReference(int flags) int
Filter flags when openFlagNodeReference
is passed.
This will maintain compatibility with c++ layer.
inherited
inodeNumber() int
Inode number as defined in io.fidl.
inherited
isEmpty() bool
Checks if directory is empty.
inherited
listNodeNames() List<String>
Returns names of the the nodes present in this directory.
inherited
lookup(String name) Vnode?
Looks up a node for given name
. ...
inherited
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed. ...
inherited
open(int flags, int mode, String path, InterfaceRequest request, [int parentFlags = Flags.fsRights]) void
This function is called from fuchsia.io.Directory#open
.
This function parses path and opens correct node. ...
override
removeAllNodes() void
Removes all directory entries.
inherited
removeNode(String name) int
Removes a directory entry with the given name
. ...
inherited
sendErrorEvent(int flags, int status, InterfaceRequest request) void
Create a error node to send onOpen event with failure status.
inherited
serve(InterfaceRequest request, {int rights: openRightReadable | openRightWritable}) int
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.
inherited
toString() String
Returns a string representation of this object.
inherited
type() int
Should be one of ...
inherited
Operators
operator ==(Object other) bool
The equality operator. ...
inherited