pub struct RemoteClient { /* private fields */ }Implementations§
Source§impl RemoteClient
impl RemoteClient
pub fn new() -> Self
pub fn read( &self, location: &RemoteLocation, selection: ReadSelection, token: &CancelToken, ) -> Result<RemoteSnapshot, RemoteReadError>
pub fn open( &self, location: &RemoteLocation, selection: ReadSelection, token: &CancelToken, ) -> Result<RemoteResource, RemoteReadError>
pub fn list( &self, location: &RemoteLocation, token: &CancelToken, ) -> Result<RemoteDirectorySnapshot, RemoteReadError>
Sourcepub fn list_connected(
&self,
directory: &RemoteFile,
token: &CancelToken,
) -> Result<Vec<RemoteEntry>, RemoteReadError>
pub fn list_connected( &self, directory: &RemoteFile, token: &CancelToken, ) -> Result<Vec<RemoteEntry>, RemoteReadError>
Completion never creates an actor or authenticates. The actor checks the same policy again when dequeuing, since the observed connection may die.
pub fn connect( &self, endpoint: &RemoteEndpoint, token: &CancelToken, ) -> Result<ConnectionLease, RemoteReadError>
Sourcepub fn disconnect(
&self,
endpoint: &RemoteEndpoint,
) -> Result<(), RemoteReadError>
pub fn disconnect( &self, endpoint: &RemoteEndpoint, ) -> Result<(), RemoteReadError>
Worker-only: revoke admission, then wait for the actor’s cleanup result.
pub fn disconnect_all(&self) -> Result<(), RemoteReadError>
Sourcepub fn connections(&self) -> Vec<RemoteEndpoint>
pub fn connections(&self) -> Vec<RemoteEndpoint>
Observational metadata, not a promise that the next request will succeed.
Trait Implementations§
Source§impl Clone for RemoteClient
impl Clone for RemoteClient
Source§fn clone(&self) -> RemoteClient
fn clone(&self) -> RemoteClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RemoteClient
impl Default for RemoteClient
Source§fn default() -> RemoteClient
fn default() -> RemoteClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteClient
impl !UnwindSafe for RemoteClient
impl Freeze for RemoteClient
impl Send for RemoteClient
impl Sync for RemoteClient
impl Unpin for RemoteClient
impl UnsafeUnpin for RemoteClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more