Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

WaitForFs

pub struct WaitForFs<P: CheckedPermissions>(pub FileSystem<P>, pub Location);

Tuple Fields

0: FileSystem<P>1: Location

Trait Implementations

impl<P> ScalarEventHandler<FileSystemEvent> for WaitForFs<P>
where P: MessageAllowed<SubscribeFilesystemEvent> + CheckedPermissions,

fn handle( &mut self, msg: FileSystemEvent, _sender: PID, context: &mut ServerContext<Self>, )

Permission: os/fs / SubscribeFilesystemEvent

Permission group: file-system.read-handles

Required signature: thirdParty

Approval: autoAllow

impl<P> Server for WaitForFs<P>
where P: MessageAllowed<SubscribeFilesystemEvent> + CheckedPermissions,

fn on_start(&mut self, context: &mut ServerContext<Self>)

Permission: os/fs / SubscribeFilesystemEvent

Permission group: file-system.read-handles

Required signature: thirdParty

Approval: autoAllow

Hook to do stuff with the context once the server is started.

impl<P: CheckedPermissions> ServerMessages for WaitForFs<P>

const NAME: &'static str = ""

The name of the server, as registered in the nameserver. If empty, a random SID will be assigned and no nameserver registration happens.

fn messages() -> &'static [MessageDef<Self>] ⓘ
where Self: Sized,

Define the messages that are handled by this server. See MessageDef and the related functions.

Auto Trait Implementations

impl<P> !Freeze for WaitForFs<P>

impl<P> RefUnwindSafe for WaitForFs<P>

impl<P> Send for WaitForFs<P>

impl<P> Sync for WaitForFs<P>

impl<P> Unpin for WaitForFs<P>

impl<P> UnsafeUnpin for WaitForFs<P>

impl<P> UnwindSafe for WaitForFs<P>