pub trait DirectoryProxyInterface: Send + Sync {
Show 53 associated items
type AdvisoryLockResponseFut: Future<Output = Result<AdvisoryLockingAdvisoryLockResult, Error>> + Send;
type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send;
type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send;
type DeprecatedGetAttrResponseFut: Future<Output = Result<(i32, NodeAttributes), Error>> + Send;
type DeprecatedSetAttrResponseFut: Future<Output = Result<i32, Error>> + Send;
type DeprecatedGetFlagsResponseFut: Future<Output = Result<(i32, OpenFlags), Error>> + Send;
type DeprecatedSetFlagsResponseFut: Future<Output = Result<i32, Error>> + Send;
type GetFlagsResponseFut: Future<Output = Result<NodeGetFlagsResult, Error>> + Send;
type SetFlagsResponseFut: Future<Output = Result<NodeSetFlagsResult, Error>> + Send;
type QueryFilesystemResponseFut: Future<Output = Result<(i32, Option<Box<FilesystemInfo>>), 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 ReadDirentsResponseFut: Future<Output = Result<(i32, Vec<u8>), Error>> + Send;
type RewindResponseFut: Future<Output = Result<i32, Error>> + Send;
type GetTokenResponseFut: Future<Output = Result<(i32, Option<NullableHandle>), Error>> + Send;
type LinkResponseFut: Future<Output = Result<i32, Error>> + Send;
type UnlinkResponseFut: Future<Output = Result<DirectoryUnlinkResult, Error>> + Send;
type RenameResponseFut: Future<Output = Result<DirectoryRenameResult, Error>> + Send;
type CreateSymlinkResponseFut: Future<Output = Result<DirectoryCreateSymlinkResult, Error>> + Send;
type WatchResponseFut: Future<Output = Result<i32, Error>> + Send;
// Required methods
fn advisory_lock(
&self,
request: &AdvisoryLockRequest,
) -> Self::AdvisoryLockResponseFut;
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 deprecated_get_attr(&self) -> Self::DeprecatedGetAttrResponseFut;
fn deprecated_set_attr(
&self,
flags: NodeAttributeFlags,
attributes: &NodeAttributes,
) -> Self::DeprecatedSetAttrResponseFut;
fn deprecated_get_flags(&self) -> Self::DeprecatedGetFlagsResponseFut;
fn deprecated_set_flags(
&self,
flags: OpenFlags,
) -> Self::DeprecatedSetFlagsResponseFut;
fn get_flags(&self) -> Self::GetFlagsResponseFut;
fn set_flags(&self, flags: Flags) -> Self::SetFlagsResponseFut;
fn query_filesystem(&self) -> Self::QueryFilesystemResponseFut;
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 open(
&self,
path: &str,
flags: Flags,
options: &Options,
object: Channel,
) -> Result<(), Error>;
fn deprecated_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: NullableHandle,
dst: &str,
) -> Self::LinkResponseFut;
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;
fn watch(
&self,
mask: WatchMask,
options: u32,
watcher: ServerEnd<DirectoryWatcherMarker>,
) -> Self::WatchResponseFut;
}Required Associated Types§
type AdvisoryLockResponseFut: Future<Output = Result<AdvisoryLockingAdvisoryLockResult, Error>> + Send
type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send
type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send
type DeprecatedGetAttrResponseFut: Future<Output = Result<(i32, NodeAttributes), Error>> + Send
type DeprecatedSetAttrResponseFut: Future<Output = Result<i32, Error>> + Send
type DeprecatedGetFlagsResponseFut: Future<Output = Result<(i32, OpenFlags), Error>> + Send
type DeprecatedSetFlagsResponseFut: Future<Output = Result<i32, Error>> + Send
type GetFlagsResponseFut: Future<Output = Result<NodeGetFlagsResult, Error>> + Send
type SetFlagsResponseFut: Future<Output = Result<NodeSetFlagsResult, Error>> + Send
type QueryFilesystemResponseFut: Future<Output = Result<(i32, Option<Box<FilesystemInfo>>), 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 ReadDirentsResponseFut: Future<Output = Result<(i32, Vec<u8>), Error>> + Send
type RewindResponseFut: Future<Output = Result<i32, Error>> + Send
type GetTokenResponseFut: Future<Output = Result<(i32, Option<NullableHandle>), Error>> + Send
type LinkResponseFut: Future<Output = Result<i32, Error>> + Send
type UnlinkResponseFut: Future<Output = Result<DirectoryUnlinkResult, Error>> + Send
type RenameResponseFut: Future<Output = Result<DirectoryRenameResult, Error>> + Send
type CreateSymlinkResponseFut: Future<Output = Result<DirectoryCreateSymlinkResult, Error>> + Send
type WatchResponseFut: Future<Output = Result<i32, Error>> + Send
Required Methods§
fn advisory_lock( &self, request: &AdvisoryLockRequest, ) -> Self::AdvisoryLockResponseFut
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 deprecated_get_attr(&self) -> Self::DeprecatedGetAttrResponseFut
fn deprecated_set_attr( &self, flags: NodeAttributeFlags, attributes: &NodeAttributes, ) -> Self::DeprecatedSetAttrResponseFut
fn deprecated_get_flags(&self) -> Self::DeprecatedGetFlagsResponseFut
fn deprecated_set_flags( &self, flags: OpenFlags, ) -> Self::DeprecatedSetFlagsResponseFut
fn get_flags(&self) -> Self::GetFlagsResponseFut
fn set_flags(&self, flags: Flags) -> Self::SetFlagsResponseFut
fn query_filesystem(&self) -> Self::QueryFilesystemResponseFut
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 open( &self, path: &str, flags: Flags, options: &Options, object: Channel, ) -> Result<(), Error>
fn deprecated_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: NullableHandle, dst: &str, ) -> Self::LinkResponseFut
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
fn watch( &self, mask: WatchMask, options: u32, watcher: ServerEnd<DirectoryWatcherMarker>, ) -> Self::WatchResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".