pub struct DoorSenses {
pub clock: Arc<dyn Fn() -> Result<TimeMs, AxError> + Send + Sync>,
pub entropy: Arc<dyn Fn(&mut [u8]) -> Result<(), AxError> + Send + Sync>,
}Expand description
The clock and the random source the door is handed; it samples neither itself.
Fields§
§clock: Arc<dyn Fn() -> Result<TimeMs, AxError> + Send + Sync>§entropy: Arc<dyn Fn(&mut [u8]) -> Result<(), AxError> + Send + Sync>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DoorSenses
impl !UnwindSafe for DoorSenses
impl Freeze for DoorSenses
impl Send for DoorSenses
impl Sync for DoorSenses
impl Unpin for DoorSenses
impl UnsafeUnpin for DoorSenses
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