pub struct ImmutableConnection<DirectoryType: Directory> { /* private fields */ }
Implementations§
Source§impl<DirectoryType: Directory> ImmutableConnection<DirectoryType>
impl<DirectoryType: Directory> ImmutableConnection<DirectoryType>
pub fn create( scope: ExecutionScope, directory: Arc<DirectoryType>, protocols: impl ProtocolsExt, object_request: ObjectRequestRef<'_>, ) -> Result<impl Future<Output = ()>, Status>
Sourcepub fn create_transform_stream<Transform, RS>(
scope: ExecutionScope,
directory: Arc<DirectoryType>,
protocols: impl ProtocolsExt,
object_request: ObjectRequestRef<'_>,
transform: Transform,
) -> Result<impl Future<Output = ()>, Status>where
Transform: FnOnce(DirectoryRequestStream) -> RS,
RS: Stream<Item = Result<DirectoryRequest, Error>>,
pub fn create_transform_stream<Transform, RS>(
scope: ExecutionScope,
directory: Arc<DirectoryType>,
protocols: impl ProtocolsExt,
object_request: ObjectRequestRef<'_>,
transform: Transform,
) -> Result<impl Future<Output = ()>, Status>where
Transform: FnOnce(DirectoryRequestStream) -> RS,
RS: Stream<Item = Result<DirectoryRequest, Error>>,
TODO(https://fxbug.dev/326626515): this is an experimental method to run a FIDL directory connection until stalled, with the purpose to cleanly stop a component. We’ll expect to revisit how this works to generalize to all connections later. Try not to use this function for other purposes.
Auto Trait Implementations§
impl<DirectoryType> Freeze for ImmutableConnection<DirectoryType>
impl<DirectoryType> !RefUnwindSafe for ImmutableConnection<DirectoryType>
impl<DirectoryType> Send for ImmutableConnection<DirectoryType>
impl<DirectoryType> Sync for ImmutableConnection<DirectoryType>
impl<DirectoryType> Unpin for ImmutableConnection<DirectoryType>
impl<DirectoryType> !UnwindSafe for ImmutableConnection<DirectoryType>
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