pub enum Platform {
Cloudflare,
Node,
Browser,
}Expand description
The deploy platform — a selection axis distinct from the --target {bundle,workers} emit mode (§6.2). It chooses which bynk-<platform>.ts
binding is linked for the bynk surface. v0.17 shipped cloudflare;
v0.18 adds node, making the axis observable (and giving v0.19’s
platform-lock enforcement a second platform to fire against).
Variants§
Cloudflare
Node
Browser
The browser (in-browser track, slice 1 — the REPL/playground host). A
Tier-3 binding exposing the bynk surface over Web APIs, composed with
BuildTarget::Bundle only (a browser cannot do the Workers wire model).
Implementations§
Source§impl Platform
impl Platform
Sourcepub fn bynk_binding_filename(self) -> &'static str
pub fn bynk_binding_filename(self) -> &'static str
The output filename of this platform’s bynk binding module.
Sourcepub fn bynk_binding_source(self) -> &'static str
pub fn bynk_binding_source(self) -> &'static str
The TypeScript source of this platform’s bynk binding.
Trait Implementations§
Source§impl Ord for Platform
impl Ord for Platform
Source§impl PartialOrd for Platform
impl PartialOrd for Platform
impl Copy for Platform
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
impl UnwindSafe for Platform
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