blob: 14e8c0660863630e0d537193e7b3bb911082f0ac [file] [log] [blame] [view]
# Service<T> class
*[<Null safety>](https://dart.dev/null-safety)*
<p>A node which binds a channel to a service implementation when opened.</p>
**Inheritance**
- Object
- [Vnode](../package-fuchsia_vfs_vfs/Vnode-class.md)
- Service
## Constructors
[Service.withConnector](../package-fuchsia_vfs_vfs/Service/Service.withConnector.md) ([Connector](../package-fuchsia_vfs_vfs/Connector.md)&lt;T> _connector)
Constructor with <a href="../package-fuchsia_vfs_vfs/Connector.md">Connector</a>
## Properties
##### [hashCode](../package-fuchsia_vfs_vfs/Vnode/hashCode.md) &#8594; int
The hash code for this object.
_<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_
##### [runtimeType](../package-fuchsia_vfs_vfs/Vnode/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_
## Methods
##### [close](../package-fuchsia_vfs_vfs/Service/close.md)() void
Close this node and all of its bindings and children.
_<span class="feature override">override</span>_
##### [connect](../package-fuchsia_vfs_vfs/Service/connect.md)(dynamic flags, int mode, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request, [dynamic parentFlags]) int
Connect to this vnode.
All flags and modes are defined in
<a href="https://fuchsia.googlesource.com/fuchsia/+/HEAD/sdk/fidl/fuchsia.io/">https://fuchsia.googlesource.com/fuchsia/+/HEAD/sdk/fidl/fuchsia.io/</a>
_<span class="feature override">override</span>_
##### [filterForNodeReference](../package-fuchsia_vfs_vfs/Vnode/filterForNodeReference.md)(dynamic flags) dynamic
Filter flags when <code>OpenFlags.nodeReference</code> is passed.
This will maintain compatibility with c++ layer.
_<span class="feature inherited">inherited</span>_
##### [inodeNumber](../package-fuchsia_vfs_vfs/Service/inodeNumber.md)() int
Inode number as defined in fuchsia.io.
_<span class="feature override">override</span>_
##### [noSuchMethod](../package-fuchsia_vfs_vfs/Vnode/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_<span class="feature inherited">inherited</span>_
##### [open](../package-fuchsia_vfs_vfs/Vnode/open.md)(dynamic flags, int mode, String path, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request, [dynamic parentFlags]) void
This function is called from <code>fidl_fuchsia_io.Directory#open</code>.
This function parses path and opens correct node.
_<span class="feature inherited">inherited</span>_
##### [sendErrorEvent](../package-fuchsia_vfs_vfs/Vnode/sendErrorEvent.md)(dynamic flags, int status, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request) void
Create a error node to send onOpen event with failure status.
_<span class="feature inherited">inherited</span>_
##### [toString](../package-fuchsia_vfs_vfs/Vnode/toString.md)() String
A string representation of this object.
_<span class="feature inherited">inherited</span>_
##### [type](../package-fuchsia_vfs_vfs/Service/type.md)() dynamic
_<span class="feature override">override</span>_
## Operators
##### [operator ==](../package-fuchsia_vfs_vfs/Vnode/operator_equals.md)(Object other) bool
The equality operator.
_<span class="feature inherited">inherited</span>_