pub struct FdPermissionDelegate {
socket: Mutex<PermissionSocket>,
}Expand description
Asks the host for audio capture permission over the socket passed with the
permission_socket_fd parameter, using the 1-byte vm_control protocol.
One socket is shared by all capture streams of the card. At most one Check is outstanding at
a time, and its answer is shared by every stream waiting on it. A start() joins the
outstanding request, even if its answer is already buffered; bytes buffered with no request
outstanding are unsolicited and are discarded. The host must answer each Check
exactly once (a dismissed dialog is Denied); until then capture stays silent. The socket is
non-blocking, so this never blocks the audio executor.
Fields§
§socket: Mutex<PermissionSocket>Implementations§
Source§impl FdPermissionDelegate
impl FdPermissionDelegate
pub fn new(stream: UnixStream) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FdPermissionDelegate
impl RefUnwindSafe for FdPermissionDelegate
impl Send for FdPermissionDelegate
impl Sync for FdPermissionDelegate
impl Unpin for FdPermissionDelegate
impl UnwindSafe for FdPermissionDelegate
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