pub trait DirectoryProxyInterface: Send + Sync {
Show 45 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 AdvisoryLockResponseFut: Future<Output = Result<AdvisoryLockingAdvisoryLockResult, Error>> + Send;
type AddInotifyFilterResponseFut: Future<Output = Result<(), Error>> + Send;
type UnlinkResponseFut: Future<Output = Result<Directory2UnlinkResult, Error>> + Send;
type RenameResponseFut: Future<Output = Result<Directory2RenameResult, 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: &mut 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: Option<&mut 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 advisory_lock(
&self,
request: AdvisoryLockRequest
) -> Self::AdvisoryLockResponseFut;
fn open2(
&self,
path: &str,
protocols: &mut ConnectionProtocols,
object_request: Channel
) -> Result<(), Error>;
fn add_inotify_filter(
&self,
path: &str,
filter: InotifyWatchMask,
watch_descriptor: u32,
socket: Socket
) -> Self::AddInotifyFilterResponseFut;
fn unlink(
&self,
name: &str,
options: UnlinkOptions
) -> Self::UnlinkResponseFut;
fn enumerate(
&self,
options: DirectoryEnumerateOptions,
iterator: ServerEnd<DirectoryIteratorMarker>
) -> Result<(), Error>;
fn rename(
&self,
src: &str,
dst_parent_token: Event,
dst: &str
) -> Self::RenameResponseFut;
}