fidl_fuchsia_io

Trait FileProxyInterface

Source
pub trait FileProxyInterface: Send + Sync {
Show 59 associated items type AdvisoryLockResponseFut: Future<Output = Result<AdvisoryLockingAdvisoryLockResult, Error>> + Send; type LinkIntoResponseFut: Future<Output = Result<LinkableLinkIntoResult, Error>> + Send; type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send; type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send; 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 GetFlags2ResponseFut: Future<Output = Result<NodeGetFlags2Result, Error>> + Send; type SetFlags2ResponseFut: Future<Output = Result<NodeSetFlags2Result, Error>> + Send; type QueryFilesystemResponseFut: Future<Output = Result<(i32, Option<Box<FilesystemInfo>>), Error>> + Send; type GetConnectionInfoResponseFut: Future<Output = Result<ConnectionInfo, Error>> + Send; type GetAttributesResponseFut: Future<Output = Result<NodeGetAttributesResult, Error>> + Send; type UpdateAttributesResponseFut: Future<Output = Result<NodeUpdateAttributesResult, Error>> + Send; type SyncResponseFut: Future<Output = Result<NodeSyncResult, Error>> + Send; type GetExtendedAttributeResponseFut: Future<Output = Result<NodeGetExtendedAttributeResult, Error>> + Send; type SetExtendedAttributeResponseFut: Future<Output = Result<NodeSetExtendedAttributeResult, Error>> + Send; type RemoveExtendedAttributeResponseFut: Future<Output = Result<NodeRemoveExtendedAttributeResult, Error>> + Send; type ReadResponseFut: Future<Output = Result<ReadableReadResult, Error>> + Send; type WriteResponseFut: Future<Output = Result<WritableWriteResult, Error>> + Send; type DescribeResponseFut: Future<Output = Result<FileInfo, Error>> + Send; type SeekResponseFut: Future<Output = Result<FileSeekResult, Error>> + Send; type ReadAtResponseFut: Future<Output = Result<FileReadAtResult, Error>> + Send; type WriteAtResponseFut: Future<Output = Result<FileWriteAtResult, Error>> + Send; type ResizeResponseFut: Future<Output = Result<FileResizeResult, Error>> + Send; type GetBackingMemoryResponseFut: Future<Output = Result<FileGetBackingMemoryResult, Error>> + Send; type AllocateResponseFut: Future<Output = Result<FileAllocateResult, Error>> + Send; type EnableVerityResponseFut: Future<Output = Result<FileEnableVerityResult, Error>> + Send; // Required methods fn advisory_lock( &self, request: &AdvisoryLockRequest, ) -> Self::AdvisoryLockResponseFut; fn link_into( &self, dst_parent_token: Event, dst: &str, ) -> Self::LinkIntoResponseFut; fn clone(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>; fn close(&self) -> Self::CloseResponseFut; fn query(&self) -> Self::QueryResponseFut; fn deprecated_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 get_flags2(&self) -> Self::GetFlags2ResponseFut; fn set_flags2(&self, flags: Flags) -> Self::SetFlags2ResponseFut; fn query_filesystem(&self) -> Self::QueryFilesystemResponseFut; 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 read(&self, count: u64) -> Self::ReadResponseFut; fn write(&self, data: &[u8]) -> Self::WriteResponseFut; fn describe(&self) -> Self::DescribeResponseFut; fn seek(&self, origin: SeekOrigin, offset: i64) -> Self::SeekResponseFut; fn read_at(&self, count: u64, offset: u64) -> Self::ReadAtResponseFut; fn write_at(&self, data: &[u8], offset: u64) -> Self::WriteAtResponseFut; fn resize(&self, length: u64) -> Self::ResizeResponseFut; fn get_backing_memory( &self, flags: VmoFlags, ) -> Self::GetBackingMemoryResponseFut; fn allocate( &self, offset: u64, length: u64, mode: AllocateMode, ) -> Self::AllocateResponseFut; fn enable_verity( &self, options: &VerificationOptions, ) -> Self::EnableVerityResponseFut;
}

Required Associated Types§

Source

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

Source

type LinkIntoResponseFut: Future<Output = Result<LinkableLinkIntoResult, Error>> + Send

Source

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

Source

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

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 GetFlags2ResponseFut: Future<Output = Result<NodeGetFlags2Result, Error>> + Send

Source

type SetFlags2ResponseFut: Future<Output = Result<NodeSetFlags2Result, Error>> + Send

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

type ReadResponseFut: Future<Output = Result<ReadableReadResult, Error>> + Send

Source

type WriteResponseFut: Future<Output = Result<WritableWriteResult, Error>> + Send

Source

type DescribeResponseFut: Future<Output = Result<FileInfo, Error>> + Send

Source

type SeekResponseFut: Future<Output = Result<FileSeekResult, Error>> + Send

Source

type ReadAtResponseFut: Future<Output = Result<FileReadAtResult, Error>> + Send

Source

type WriteAtResponseFut: Future<Output = Result<FileWriteAtResult, Error>> + Send

Source

type ResizeResponseFut: Future<Output = Result<FileResizeResult, Error>> + Send

Source

type GetBackingMemoryResponseFut: Future<Output = Result<FileGetBackingMemoryResult, Error>> + Send

Source

type AllocateResponseFut: Future<Output = Result<FileAllocateResult, Error>> + Send

Source

type EnableVerityResponseFut: Future<Output = Result<FileEnableVerityResult, Error>> + Send

Required Methods§

Source

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

Source

fn clone(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>

Source

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

Source

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

Source

fn deprecated_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 get_flags2(&self) -> Self::GetFlags2ResponseFut

Source

fn set_flags2(&self, flags: Flags) -> Self::SetFlags2ResponseFut

Source

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

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 read(&self, count: u64) -> Self::ReadResponseFut

Source

fn write(&self, data: &[u8]) -> Self::WriteResponseFut

Source

fn describe(&self) -> Self::DescribeResponseFut

Source

fn seek(&self, origin: SeekOrigin, offset: i64) -> Self::SeekResponseFut

Source

fn read_at(&self, count: u64, offset: u64) -> Self::ReadAtResponseFut

Source

fn write_at(&self, data: &[u8], offset: u64) -> Self::WriteAtResponseFut

Source

fn resize(&self, length: u64) -> Self::ResizeResponseFut

Source

fn get_backing_memory( &self, flags: VmoFlags, ) -> Self::GetBackingMemoryResponseFut

Source

fn allocate( &self, offset: u64, length: u64, mode: AllocateMode, ) -> Self::AllocateResponseFut

Source

fn enable_verity( &self, options: &VerificationOptions, ) -> Self::EnableVerityResponseFut

Implementors§

Source§

impl FileProxyInterface for FileProxy

Source§

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

Source§

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

Source§

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

Source§

type QueryResponseFut = QueryResponseFut<Vec<u8>>

Source§

type GetAttrResponseFut = QueryResponseFut<(i32, NodeAttributes)>

Source§

type SetAttrResponseFut = QueryResponseFut<i32>

Source§

type GetFlagsResponseFut = QueryResponseFut<(i32, OpenFlags)>

Source§

type SetFlagsResponseFut = QueryResponseFut<i32>

Source§

type GetFlags2ResponseFut = QueryResponseFut<Result<Flags, i32>>

Source§

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

Source§

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

Source§

type GetConnectionInfoResponseFut = QueryResponseFut<ConnectionInfo>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type ReadResponseFut = QueryResponseFut<Result<Vec<u8>, i32>>

Source§

type WriteResponseFut = QueryResponseFut<Result<u64, i32>>

Source§

type DescribeResponseFut = QueryResponseFut<FileInfo>

Source§

type SeekResponseFut = QueryResponseFut<Result<u64, i32>>

Source§

type ReadAtResponseFut = QueryResponseFut<Result<Vec<u8>, i32>>

Source§

type WriteAtResponseFut = QueryResponseFut<Result<u64, i32>>

Source§

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

Source§

type GetBackingMemoryResponseFut = QueryResponseFut<Result<Vmo, i32>>

Source§

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

Source§

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