pub enum DeviceJoinApprovalPolicy<'a> {
AutoApproveSelfIssued,
Ask(&'a (dyn Fn(&DeviceProviderAccessRequest) -> DeviceJoinApproval + Sync + Send)),
}Expand description
Whether the driver approves an access request, and on whose say-so.
Variants§
AutoApproveSelfIssued
Approve requests against an attempt this device itself issued: its own owner journal holds the attempt, and the request carries the offer this bundle names. Anything else is refused. The host opts into this; it is never the implicit behavior.
Ask(&'a (dyn Fn(&DeviceProviderAccessRequest) -> DeviceJoinApproval + Sync + Send))
Ask the host, which prompts whoever is at the device.
Auto Trait Implementations§
impl<'a> Freeze for DeviceJoinApprovalPolicy<'a>
impl<'a> !RefUnwindSafe for DeviceJoinApprovalPolicy<'a>
impl<'a> Send for DeviceJoinApprovalPolicy<'a>
impl<'a> Sync for DeviceJoinApprovalPolicy<'a>
impl<'a> Unpin for DeviceJoinApprovalPolicy<'a>
impl<'a> UnsafeUnpin for DeviceJoinApprovalPolicy<'a>
impl<'a> !UnwindSafe for DeviceJoinApprovalPolicy<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.