Struct vfs::symlink::Connection
source · pub struct Connection<T> { /* private fields */ }
Implementations§
source§impl<T: Symlink> Connection<T>
impl<T: Symlink> Connection<T>
sourcepub fn new(scope: ExecutionScope, symlink: Arc<T>) -> Self
pub fn new(scope: ExecutionScope, symlink: Arc<T>) -> Self
Returns a new connection object.
sourcepub fn create(
scope: ExecutionScope,
symlink: Arc<T>,
protocols: &impl ProtocolsExt,
object_request: ObjectRequestRef<'_>,
) -> Result<impl Future<Output = ()>, Status>
pub fn create( scope: ExecutionScope, symlink: Arc<T>, protocols: &impl ProtocolsExt, object_request: ObjectRequestRef<'_>, ) -> Result<impl Future<Output = ()>, Status>
Upon success, returns a future that will proceess requests for the connection.
sourcepub async fn run(self, object_request: ObjectRequest)
pub async fn run(self, object_request: ObjectRequest)
Process requests until either shutdown
is notfied, the connection is closed, or an error
with the connection is encountered.
Trait Implementations§
source§impl<T: Symlink> Representation for Connection<T>
impl<T: Symlink> Representation for Connection<T>
§type Protocol = SymlinkMarker
type Protocol = SymlinkMarker
The protocol used for the connection.
source§async fn get_representation(
&self,
requested_attributes: NodeAttributesQuery,
) -> Result<Representation, Status>
async fn get_representation( &self, requested_attributes: NodeAttributesQuery, ) -> Result<Representation, Status>
Returns io2’s Representation for the object.
Auto Trait Implementations§
impl<T> Freeze for Connection<T>
impl<T> !RefUnwindSafe for Connection<T>
impl<T> Send for Connection<T>
impl<T> Sync for Connection<T>
impl<T> Unpin for Connection<T>
impl<T> !UnwindSafe for Connection<T>
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