Trait fidl_fuchsia_io::DirectoryProxyInterface

source ·
pub trait DirectoryProxyInterface: Send + Sync {
Show 52 associated items type GetAttrResponseFut: Future<Output = Result<(i32, NodeAttributes), Error>> + Send; type SetAttrResponseFut: Future<Output = Result<i32, Error>> + Send; type GetFlagsResponseFut: Future<Output = Result<(i32, OpenFlags), Error>> + Send; type SetFlagsResponseFut: Future<Output = Result<i32, Error>> + Send; type QueryFilesystemResponseFut: Future<Output = Result<(i32, Option<Box<FilesystemInfo>>), Error>> + Send; type ReadDirentsResponseFut: Future<Output = Result<(i32, Vec<u8>), Error>> + Send; type RewindResponseFut: Future<Output = Result<i32, Error>> + Send; type GetTokenResponseFut: Future<Output = Result<(i32, Option<Handle>), Error>> + Send; type LinkResponseFut: Future<Output = Result<i32, Error>> + Send; type WatchResponseFut: Future<Output = Result<i32, Error>> + Send; type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send; type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send; type GetConnectionInfoResponseFut: Future<Output = Result<ConnectionInfo, Error>> + Send; type GetAttributesResponseFut: Future<Output = Result<Node2GetAttributesResult, Error>> + Send; type UpdateAttributesResponseFut: Future<Output = Result<Node2UpdateAttributesResult, Error>> + Send; type SyncResponseFut: Future<Output = Result<Node2SyncResult, Error>> + Send; type GetExtendedAttributeResponseFut: Future<Output = Result<Node2GetExtendedAttributeResult, Error>> + Send; type SetExtendedAttributeResponseFut: Future<Output = Result<Node2SetExtendedAttributeResult, Error>> + Send; type RemoveExtendedAttributeResponseFut: Future<Output = Result<Node2RemoveExtendedAttributeResult, Error>> + Send; type AdvisoryLockResponseFut: Future<Output = Result<AdvisoryLockingAdvisoryLockResult, Error>> + Send; type UnlinkResponseFut: Future<Output = Result<Directory2UnlinkResult, Error>> + Send; type RenameResponseFut: Future<Output = Result<Directory2RenameResult, Error>> + Send; type CreateSymlinkResponseFut: Future<Output = Result<Directory2CreateSymlinkResult, Error>> + Send; // Required methods fn clone( &self, flags: OpenFlags, object: ServerEnd<NodeMarker>, ) -> Result<(), Error>; fn get_attr(&self) -> Self::GetAttrResponseFut; fn set_attr( &self, flags: NodeAttributeFlags, attributes: &NodeAttributes, ) -> Self::SetAttrResponseFut; fn get_flags(&self) -> Self::GetFlagsResponseFut; fn set_flags(&self, flags: OpenFlags) -> Self::SetFlagsResponseFut; fn query_filesystem(&self) -> Self::QueryFilesystemResponseFut; fn open( &self, flags: OpenFlags, mode: ModeType, path: &str, object: ServerEnd<NodeMarker>, ) -> Result<(), Error>; fn read_dirents(&self, max_bytes: u64) -> Self::ReadDirentsResponseFut; fn rewind(&self) -> Self::RewindResponseFut; fn get_token(&self) -> Self::GetTokenResponseFut; fn link( &self, src: &str, dst_parent_token: Handle, dst: &str, ) -> Self::LinkResponseFut; fn watch( &self, mask: WatchMask, options: u32, watcher: ServerEnd<DirectoryWatcherMarker>, ) -> Self::WatchResponseFut; fn close(&self) -> Self::CloseResponseFut; fn query(&self) -> Self::QueryResponseFut; fn reopen( &self, rights_request: &RightsRequest, object_request: ServerEnd<NodeMarker>, ) -> Result<(), Error>; fn get_connection_info(&self) -> Self::GetConnectionInfoResponseFut; fn get_attributes( &self, query: NodeAttributesQuery, ) -> Self::GetAttributesResponseFut; fn update_attributes( &self, payload: &MutableNodeAttributes, ) -> Self::UpdateAttributesResponseFut; fn sync(&self) -> Self::SyncResponseFut; fn list_extended_attributes( &self, iterator: ServerEnd<ExtendedAttributeIteratorMarker>, ) -> Result<(), Error>; fn get_extended_attribute( &self, name: &[u8], ) -> Self::GetExtendedAttributeResponseFut; fn set_extended_attribute( &self, name: &[u8], value: ExtendedAttributeValue, mode: SetExtendedAttributeMode, ) -> Self::SetExtendedAttributeResponseFut; fn remove_extended_attribute( &self, name: &[u8], ) -> Self::RemoveExtendedAttributeResponseFut; fn advisory_lock( &self, request: &AdvisoryLockRequest, ) -> Self::AdvisoryLockResponseFut; fn open2( &self, path: &str, protocols: &ConnectionProtocols, object_request: Channel, ) -> Result<(), Error>; fn open3( &self, path: &str, flags: Flags, options: &Options, object: Channel, ) -> Result<(), Error>; fn unlink( &self, name: &str, options: &UnlinkOptions, ) -> Self::UnlinkResponseFut; fn rename( &self, src: &str, dst_parent_token: Event, dst: &str, ) -> Self::RenameResponseFut; fn create_symlink( &self, name: &str, target: &[u8], connection: Option<ServerEnd<SymlinkMarker>>, ) -> Self::CreateSymlinkResponseFut;
}

Required Associated Types§

source

type GetAttrResponseFut: Future<Output = Result<(i32, NodeAttributes), Error>> + Send

source

type SetAttrResponseFut: Future<Output = Result<i32, Error>> + Send

source

type GetFlagsResponseFut: Future<Output = Result<(i32, OpenFlags), Error>> + Send

source

type SetFlagsResponseFut: Future<Output = Result<i32, Error>> + Send

source

type QueryFilesystemResponseFut: Future<Output = Result<(i32, Option<Box<FilesystemInfo>>), Error>> + Send

source

type ReadDirentsResponseFut: Future<Output = Result<(i32, Vec<u8>), Error>> + Send

source

type RewindResponseFut: Future<Output = Result<i32, Error>> + Send

source

type GetTokenResponseFut: Future<Output = Result<(i32, Option<Handle>), Error>> + Send

source

type LinkResponseFut: Future<Output = Result<i32, Error>> + Send

source

type WatchResponseFut: Future<Output = Result<i32, Error>> + Send

source

type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send

source

type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send

source

type GetConnectionInfoResponseFut: Future<Output = Result<ConnectionInfo, Error>> + Send

source

type GetAttributesResponseFut: Future<Output = Result<Node2GetAttributesResult, Error>> + Send

source

type UpdateAttributesResponseFut: Future<Output = Result<Node2UpdateAttributesResult, Error>> + Send

source

type SyncResponseFut: Future<Output = Result<Node2SyncResult, Error>> + Send

source

type GetExtendedAttributeResponseFut: Future<Output = Result<Node2GetExtendedAttributeResult, Error>> + Send

source

type SetExtendedAttributeResponseFut: Future<Output = Result<Node2SetExtendedAttributeResult, Error>> + Send

source

type RemoveExtendedAttributeResponseFut: Future<Output = Result<Node2RemoveExtendedAttributeResult, Error>> + Send

source

type AdvisoryLockResponseFut: Future<Output = Result<AdvisoryLockingAdvisoryLockResult, Error>> + Send

source

type UnlinkResponseFut: Future<Output = Result<Directory2UnlinkResult, Error>> + Send

source

type RenameResponseFut: Future<Output = Result<Directory2RenameResult, Error>> + Send

source

type CreateSymlinkResponseFut: Future<Output = Result<Directory2CreateSymlinkResult, Error>> + Send

Required Methods§

source

fn clone( &self, flags: OpenFlags, object: ServerEnd<NodeMarker>, ) -> Result<(), Error>

source

fn get_attr(&self) -> Self::GetAttrResponseFut

source

fn set_attr( &self, flags: NodeAttributeFlags, attributes: &NodeAttributes, ) -> Self::SetAttrResponseFut

source

fn get_flags(&self) -> Self::GetFlagsResponseFut

source

fn set_flags(&self, flags: OpenFlags) -> Self::SetFlagsResponseFut

source

fn query_filesystem(&self) -> Self::QueryFilesystemResponseFut

source

fn open( &self, flags: OpenFlags, mode: ModeType, path: &str, object: ServerEnd<NodeMarker>, ) -> Result<(), Error>

source

fn read_dirents(&self, max_bytes: u64) -> Self::ReadDirentsResponseFut

source

fn rewind(&self) -> Self::RewindResponseFut

source

fn get_token(&self) -> Self::GetTokenResponseFut

source

fn watch( &self, mask: WatchMask, options: u32, watcher: ServerEnd<DirectoryWatcherMarker>, ) -> Self::WatchResponseFut

source

fn close(&self) -> Self::CloseResponseFut

source

fn query(&self) -> Self::QueryResponseFut

source

fn reopen( &self, rights_request: &RightsRequest, object_request: ServerEnd<NodeMarker>, ) -> Result<(), Error>

source

fn get_connection_info(&self) -> Self::GetConnectionInfoResponseFut

source

fn get_attributes( &self, query: NodeAttributesQuery, ) -> Self::GetAttributesResponseFut

source

fn update_attributes( &self, payload: &MutableNodeAttributes, ) -> Self::UpdateAttributesResponseFut

source

fn sync(&self) -> Self::SyncResponseFut

source

fn list_extended_attributes( &self, iterator: ServerEnd<ExtendedAttributeIteratorMarker>, ) -> Result<(), Error>

source

fn get_extended_attribute( &self, name: &[u8], ) -> Self::GetExtendedAttributeResponseFut

source

fn set_extended_attribute( &self, name: &[u8], value: ExtendedAttributeValue, mode: SetExtendedAttributeMode, ) -> Self::SetExtendedAttributeResponseFut

source

fn remove_extended_attribute( &self, name: &[u8], ) -> Self::RemoveExtendedAttributeResponseFut

source

fn advisory_lock( &self, request: &AdvisoryLockRequest, ) -> Self::AdvisoryLockResponseFut

source

fn open2( &self, path: &str, protocols: &ConnectionProtocols, object_request: Channel, ) -> Result<(), Error>

source

fn open3( &self, path: &str, flags: Flags, options: &Options, object: Channel, ) -> Result<(), Error>

source

fn rename( &self, src: &str, dst_parent_token: Event, dst: &str, ) -> Self::RenameResponseFut

Implementors§

source§

impl DirectoryProxyInterface for DirectoryProxy

§

type GetAttrResponseFut = QueryResponseFut<(i32, NodeAttributes)>

§

type SetAttrResponseFut = QueryResponseFut<i32>

§

type GetFlagsResponseFut = QueryResponseFut<(i32, OpenFlags)>

§

type SetFlagsResponseFut = QueryResponseFut<i32>

§

type QueryFilesystemResponseFut = QueryResponseFut<(i32, Option<Box<FilesystemInfo>>)>

§

type ReadDirentsResponseFut = QueryResponseFut<(i32, Vec<u8>)>

§

type RewindResponseFut = QueryResponseFut<i32>

§

type GetTokenResponseFut = QueryResponseFut<(i32, Option<Handle>)>

§

type LinkResponseFut = QueryResponseFut<i32>

§

type WatchResponseFut = QueryResponseFut<i32>

§

type CloseResponseFut = QueryResponseFut<Result<(), i32>>

§

type QueryResponseFut = QueryResponseFut<Vec<u8>>

§

type GetConnectionInfoResponseFut = QueryResponseFut<ConnectionInfo>

§

type GetAttributesResponseFut = QueryResponseFut<Result<(MutableNodeAttributes, ImmutableNodeAttributes), i32>>

§

type UpdateAttributesResponseFut = QueryResponseFut<Result<(), i32>>

§

type SyncResponseFut = QueryResponseFut<Result<(), i32>>

§

type GetExtendedAttributeResponseFut = QueryResponseFut<Result<ExtendedAttributeValue, i32>>

§

type SetExtendedAttributeResponseFut = QueryResponseFut<Result<(), i32>>

§

type RemoveExtendedAttributeResponseFut = QueryResponseFut<Result<(), i32>>

§

type AdvisoryLockResponseFut = QueryResponseFut<Result<(), i32>>

§

type UnlinkResponseFut = QueryResponseFut<Result<(), i32>>

§

type RenameResponseFut = QueryResponseFut<Result<(), i32>>

§

type CreateSymlinkResponseFut = QueryResponseFut<Result<(), i32>>