Struct trussed::service::ServiceResources
source · [−]pub struct ServiceResources<P> where
P: Platform, { /* private fields */ }
Implementations
sourceimpl<P: Platform> ServiceResources<P>
impl<P: Platform> ServiceResources<P>
sourceimpl<P: Platform> ServiceResources<P>
impl<P: Platform> ServiceResources<P>
pub fn reply_to(
&mut self,
client_id: PathBuf,
request: &Request
) -> Result<Reply, Error>
sourcepub fn rng(&mut self) -> Result<ChaCha8Rng, Error>
pub fn rng(&mut self) -> Result<ChaCha8Rng, Error>
Applies a splitting aka forking construction to the inner DRBG, returning an independent DRBG.
pub fn fill_random_bytes(&mut self, bytes: &mut [u8]) -> Result<(), Error>
Auto Trait Implementations
impl<P> RefUnwindSafe for ServiceResources<P> where
P: RefUnwindSafe,
impl<P> Send for ServiceResources<P> where
P: Send,
impl<P> Sync for ServiceResources<P> where
P: Sync,
impl<P> Unpin for ServiceResources<P> where
P: Unpin,
impl<P> UnwindSafe for ServiceResources<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more